You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Jacob S. Barrett (JIRA)" <di...@incubator.apache.org> on 2005/09/20 22:00:45 UTC

[jira] Created: (DIREVE-266) ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).

ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).
------------------------------------------------------------------------------------------------

         Key: DIREVE-266
         URL: http://issues.apache.org/jira/browse/DIREVE-266
     Project: Directory Server
        Type: Bug
  Components: jndi-provider  
    Versions: 0.9.3, 0.8, 0.9, 0.9.1, 0.9.2    
    Reporter: Jacob S. Barrett
 Assigned to: Alex Karasulu 


When searching the ServerDirContext with filter arguments it throws index out of bounds exceptions in two places.

The first place is where it attempts to substitute the value into the buffer it uses the index of the } char as the index into the arguments.

The second one, after you fix the first, is when the search for { reaches the end of the string.

The attached patch fixes both and includes a JUnit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DIREVE-266) ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).

Posted by "Trustin Lee (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-266?page=all ]
     
Trustin Lee resolved DIREVE-266:
--------------------------------

    Fix Version: 0.9.3
     Resolution: Fixed

The patch looks good.  I applied it.  But wouldn't there be any nested {} blocks?  Just a question by my curiousity.

> ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).
> ------------------------------------------------------------------------------------------------
>
>          Key: DIREVE-266
>          URL: http://issues.apache.org/jira/browse/DIREVE-266
>      Project: Directory Server
>         Type: Bug
>   Components: jndi-provider
>     Versions: 0.9.3, 0.8, 0.9, 0.9.1, 0.9.2
>     Reporter: Jacob S. Barrett
>     Assignee: Alex Karasulu
>      Fix For: 0.9.3
>  Attachments: search-filterargs.patch
>
> When searching the ServerDirContext with filter arguments it throws index out of bounds exceptions in two places.
> The first place is where it attempts to substitute the value into the buffer it uses the index of the } char as the index into the arguments.
> The second one, after you fix the first, is when the search for { reaches the end of the string.
> The attached patch fixes both and includes a JUnit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIRSERVER-326) ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-326.
---------------------------------------


Closing all issues created in 2005 and before which are marked resolved

> ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).
> ------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-326
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-326
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Jacob S. Barrett
>         Assigned To: Alex Karasulu
>         Attachments: search-filterargs.patch
>
>
> When searching the ServerDirContext with filter arguments it throws index out of bounds exceptions in two places.
> The first place is where it attempts to substitute the value into the buffer it uses the index of the } char as the index into the arguments.
> The second one, after you fix the first, is when the search for { reaches the end of the string.
> The attached patch fixes both and includes a JUnit test.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIREVE-266) ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).

Posted by "Jacob S. Barrett (JIRA)" <di...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/DIREVE-266?page=all ]

Jacob S. Barrett updated DIREVE-266:
------------------------------------

    Attachment: search-filterargs.patch

> ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).
> ------------------------------------------------------------------------------------------------
>
>          Key: DIREVE-266
>          URL: http://issues.apache.org/jira/browse/DIREVE-266
>      Project: Directory Server
>         Type: Bug
>   Components: jndi-provider
>     Versions: 0.9.3, 0.8, 0.9, 0.9.1, 0.9.2
>     Reporter: Jacob S. Barrett
>     Assignee: Alex Karasulu
>  Attachments: search-filterargs.patch
>
> When searching the ServerDirContext with filter arguments it throws index out of bounds exceptions in two places.
> The first place is where it attempts to substitute the value into the buffer it uses the index of the } char as the index into the arguments.
> The second one, after you fix the first, is when the search for { reaches the end of the string.
> The attached patch fixes both and includes a JUnit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIREVE-266) ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).

Posted by "Jacob S. Barrett (JIRA)" <di...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/DIREVE-266?page=comments#action_12330202 ] 

Jacob S. Barrett commented on DIREVE-266:
-----------------------------------------

I don't think nested {} are supported.  The don't appear to be in MessageFormat, which is similar.  There is one thing this is missing though.  Might the values need to be encoded?  Maybe not since this is really for inproc access to the directory.  What are your thoughts?

> ServerDirContext.search() with filter arguments always gets index out of bounds (in two places).
> ------------------------------------------------------------------------------------------------
>
>          Key: DIREVE-266
>          URL: http://issues.apache.org/jira/browse/DIREVE-266
>      Project: Directory Server
>         Type: Bug
>   Components: jndi-provider
>     Versions: 0.9.3, 0.8, 0.9, 0.9.1, 0.9.2
>     Reporter: Jacob S. Barrett
>     Assignee: Alex Karasulu
>      Fix For: 0.9.3
>  Attachments: search-filterargs.patch
>
> When searching the ServerDirContext with filter arguments it throws index out of bounds exceptions in two places.
> The first place is where it attempts to substitute the value into the buffer it uses the index of the } char as the index into the arguments.
> The second one, after you fix the first, is when the search for { reaches the end of the string.
> The attached patch fixes both and includes a JUnit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira