Apache Directory Project - [jira] Commented: (DIREVE-266) ServerDirContext.search() with filter arguments always

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > September 2005 > [jira] Commented: (DIREVE-266) ServerDirContext.search() with filter arguments always





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (DIREVE-266) ServerDirContext.search() with filter arguments always
Jacob S. Barrett (JIRA)

2005-09-22, 8:45 pm

[ http://issues.apache.org/jira/brows...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/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com