directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Resolved: (DIRLDAP-85) Filtered searches failing
Date Thu, 19 Jan 2006 00:07:44 GMT
     [ http://issues.apache.org/jira/browse/DIRLDAP-85?page=all ]
     
Emmanuel Lecharny resolved DIRLDAP-85:
--------------------------------------

    Resolution: Fixed

Fixed, and a test has been added with all the different cases.

> Filtered searches failing
> -------------------------
>
>          Key: DIRLDAP-85
>          URL: http://issues.apache.org/jira/browse/DIRLDAP-85
>      Project: Directory LDAP
>         Type: Bug
>     Reporter: Emmanuel Lecharny
>     Priority: Blocker

>
> If we are trying to do a search with substring filters, we don't get the expected results
:
> (ou=*tem) is ok, but (ou=sys*) does not return any value. 
> The StringTools method getRegexp() does not create a correct regexp, if we have a null
final value (which is the case when we have a * at the end of the filter.
> I think that the regexp should be constructed like this :
> init any  final
>  A   null  null -> ^A.*   [ current : ^A (incorrect) ]
> null  A    null -> .*A.*   [ current : .*A (incorrect) ]
> null null   A   -> .*A   [ current : .*A  (correct) ]
>  A     B    null -> ^A(.*B)+.*   [ current : ^A(.*B)+ (incorrect)]
>  A    null   B   -> ^A.*B   [ current : ^A.*B  (correct) ]
> null  A      B   -> (.*A)+.*B   [ current : (.*A)+.*B  (correct) ]
>  A     B      C   -> ^A(.*B)+.*C   [ current : ^A(.*B)+.*C (correct) ]
> Any comment, before I change it ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message