Issue Details (XML | Word | Printable)

Key: DIRSERVER-193
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
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

Search request BER parser incorrectly parses complex filters.

Created: 25/Mar/05 07:44 AM   Updated: 21/Apr/07 11:08 AM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works AND-OR-2.patch 2005-03-26 01:37 AM Jacob S. Barrett 2 kB
Text File Licensed for inclusion in ASF works AND-OR.patch 2005-03-25 11:14 AM Jacob S. Barrett 4 kB
Environment: NA

Resolution Date: 25/Mar/05 12:29 PM


 Description  « Hide
Using the following search from an LDAP client, like Softera's browser or OpenLDAP's ldapsearch, search for something like the following filter:

(& (a=A) (| (b=B) (c=C) ) )

The resulting expression object after the BER parser is finished is:

(& (| (c=C) (b=B) (a=A) ) )

This is obviously not the correct expression and results in bobus results.

I thought at first it might have been the expression object serializing to a string form that had issue, but passing the same filter string through the commons.filter.FilterParserImpl produces the correct expression object and the correct serialized string.

I am attempting to debug the problem further. If I can produce a patch I will post it, but if someone has a better idea of what is going please tackle this.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.