Issue Details (XML | Word | Printable)

Key: DIRSERVER-326
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Jacob S. Barrett
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

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

Created: 21/Sep/05 05:00 AM   Updated: 21/Apr/07 11:18 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works search-filterargs.patch 2005-09-21 05:01 AM Jacob S. Barrett 4 kB

Resolution Date: 22/Sep/05 11:56 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.