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-1181) Too many results when using searchfilter with escaped asterisks \2A
Date Wed, 28 May 2008 23:40:45 GMT

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

Emmanuel Lecharny commented on DIRSERVER-1181:
----------------------------------------------

This sounds really much like a JNDI bug : when I look at what we receive from the client,
when sending such a request (test1) :

        NamingEnumeration<SearchResult> res = ctx.search( "ou=system", "(cn=*x\\*y\\*z\\**)",
null );

 here is what I have :

0x30 0x4E   // Message
  0x02 0x01 0x03 // # 3
  0x63 0x2C   // Search Request
    0x04 0x09 // Base object : ou=system
      0x6F 0x75 0x3D 0x73 0x79 0x73 0x74 0x65 0x6D 
    0x0A 0x01 0x01 // scope = One
    0x0A 0x01 0x03 // Deref = always
    0x02 0x01 0x00 // time limit = none
    0x02 0x01 0x00 // size limit = none
    0x01 0x01 0x00 // types only = false
    0xA4 0x0E // substrings filter
      0x04 0x02 // type
        0x63 0x6E // cn
      0x30 0x08 // substrinbgs
        0x81 0x06 // any
          0x78 0x2A 0x79 0x2A 0x7A 0x2A // x*y*z*
    0x30 0x00 // attributeDescriptionList null
  0xA0 0x1B // controls
    0x30 0x19 
      0x04 0x17 
        0x32 0x2E 0x31 0x36 0x2E 0x38 0x34 0x30 0x2E 0x31 0x2E 0x31 0x31 0x33 0x37 0x33 0x30
0x2E 0x33 0x2E 0x34 0x2E 0x32
blah ...

The important thing is that I would have expected JNDI to split the filter in no init filter
(*), three any filter : x, y and z, and no final filter. Instead of what we get one big any
filter containing the whole filter. Shame on JNDI !!!

> 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