directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-1181) Too many results when using searchfilter with escaped asterisks \2A
Date Thu, 10 Jul 2008 14:12:32 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612505#action_12612505
] 

Stefan Seelmann commented on DIRSERVER-1181:
--------------------------------------------

I don't think that the "x*y*z*" should be splitted into three parts, because the the '*' are
part of the value.

I will try to explain it a bit clearer:

I have two entries, one of them has a cn containing some '*':

--------------------------------------
dn: cn=x*y*z*,ou=system
objectClass: person
objectClass: top
cn: x*y*z*
sn: x*y*z*

dn: cn=test,ou=system
objectClass: person
objectClass: top
cn: test
sn: test
--------------------------------------

Now I want to search the entry 'cn=x*y*z*'. 

If I use an equals filter I get exactly this one entry:
  ctx.search( "ou=system", "(cn=x\\2Ay\\2Az\\2A)", null );

However if I use a substring filter I get both entries!
  ctx.search( "ou=system", "(cn=*x\\2Ay\\2Az\\2A*)", null );



> Too many results when using searchfilter with escaped asterisks \2A
> -------------------------------------------------------------------
>
>                 Key: DIRSERVER-1181
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1181
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.3, 1.5.2
>            Reporter: Stefan Seelmann
>            Assignee: Emmanuel Lecharny
>         Attachments: DIRSERVER_1181_Test.java
>
>
> A search request with such a search filter 
>   (cn=*x\*y\*z\*) or (cn=*x\2Ay\2Az\2A)
> returns all the entries containing an "cn" attribute
>  

-- 
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