Issue Details (XML | Word | Printable)

Key: DIRSERVER-651
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Lecharny
Reporter: Ralf Hauser
Votes: 0
Watchers: 0
Operations

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

query incorrectly parsed if first part contains wild-cards (asterisk) - most prominently for gpg/gnupg

Created: 18/Jun/06 12:29 PM   Updated: 15/Feb/09 01:34 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
GIF File Licensed for inclusion in ASF works ldapAsterisk.txt 2006-07-09 04:49 PM Ralf Hauser 4 kB
GIF File Licensed for inclusion in ASF works ldapNoAsterisk.txt 2006-07-09 04:48 PM Ralf Hauser 8 kB
Environment: all

Resolution Date: 14/Jul/06 11:39 AM


 Description  « Hide
As reported by Valdimir (http://mail-archives.apache.org/mod_mbox/directory-dev/200606.mbox/ajax/%3c4492B645.9020205@netcetera.com.mk%3e) this query is not handled correctly.

In short:
  ldapsearch -x -H ldap://localhost:11500 -D "dn=bugs" -w bunny -b "dc=pgpkeys" "(&(pgpuserid=test*)(pgpdisabled=0))"
only brings up a SimpleNode instead of a BranchNode.

Some further insights:
-----------------
1) a unit test on the query with the parser in shared-ldap-0.9.5.jar appears to work:
            FilterParserImpl parser = new FilterParserImpl();
            ExprNode node = parser
                    .parse("(&(pgpuserid=*@test*)(pgpdisabled=0))");
  ==> a BranchNode is returned here, but not when using apacheDS
2) when switching the order of the sub-queries, I do see the BranchNode even when using apacheDS with both parts:
     ldapsearch -x -H ldap://localhost:2389 -d5 -D "dn=bugs" -w bunny -b "dc=pgpkeys" "(&(pgpdisabled=0)(pgpuserid=@test*))"
3) increasing the debug level to "ldapsearch -d10" hints that the full query is sent to apacheDS and not only the "pgpdisabled=0" part
4) when setting a break-point in org.apache.directory.shared.ldap.filter.FilterParserImpl, it appears that when doing my tests, the parse() is never called??


 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.