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
Jacob S. Barrett made changes - 21/Sep/05 05:01 AM
Field Original Value New Value
Attachment search-filterargs.patch [ 12314477 ]
Trustin Lee made changes - 22/Sep/05 11:56 AM
Fix Version/s 0.9.3 [ 12310193 ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Alex Karasulu made changes - 10/Feb/06 12:34 PM
Affects Version/s 0.9 [ 11003 ]
Affects Version/s 0.8 [ 10990 ]
Affects Version/s 0.9.3 [ 12310193 ]
Fix Version/s 0.9.3 [ 12310193 ]
Project Directory Server [ 10516 ] Directory ApacheDS [ 12310260 ]
Key DIREVE-266 DIRSERVER-326
Affects Version/s 0.9.1 [ 11125 ]
Component/s jndi-provider [ 11088 ]
Affects Version/s 0.9.2 [ 12310192 ]
Emmanuel Lecharny made changes - 21/Apr/07 11:18 AM
Status Resolved [ 5 ] Closed [ 6 ]