directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-823) Problem decoding search filter
Date Sat, 03 Feb 2007 23:18:05 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470009
] 

Emmanuel Lecharny commented on DIRSERVER-823:
---------------------------------------------

Fixed in 1.0.1 :
http://svn.apache.org/viewvc?view=rev&rev=503333
Tests :
http://svn.apache.org/viewvc?view=rev&rev=503334

> Problem decoding search filter
> ------------------------------
>
>                 Key: DIRSERVER-823
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-823
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0.1, 1.5.0, 1.0
>            Reporter: Endi S. Dewata
>         Assigned To: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 1.0.1, 1.5.0
>
>         Attachments: DIRSERVER823Test.java
>
>
> ApacheDS is having a problem decoding certain LDAP search filters involving nested filters
and substring filter from LDAP Message.
> This problem was originally reported here:
> http://groups-beta.google.com/group/safehaus/browse_thread/thread/5100becc932fad8c
> This problem can be reproduced in ApacheDS 1.0.0, 1.0.1, and 1.5.0.
> Steps to reproduce:
> 1. Edit org/apache/directory/shared/ldap/codec/search/SearchRequest.java, add the following
at the end
>     of unstackFilters() method (line 430):
>         System.out.println("Filter: "+filter);
> 2. Compile and start ApacheDS server.
> 3. Run the following search:
>     ldapsearch -h localhost -p 10389 -D uid=admin,ou=system -w secret -x
>     -b "dc=Example,dc=com" "(&(mail=a)(|(cn=b*)(sn=c)))"
> Here's the output:
> Filter: &(mail=a)
> Filter: &(mail=a)(|(b*))
> Filter: &(mail=a)(|(b*))(sn=c)
> Notice that the position of the parenthesises has changed. If the '*' is removed, it
will work just fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message