Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1744

Compex LDAP search filters returning unmatched objects

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M6
    • Fix Version/s: 2.0.0-M8
    • Component/s: ldap
    • Labels:
      None
    • Environment:
      CentOS 5.6

      Description

      I used ApacheDirectoryStudio-linux-x86_64-2.0.0.v20120224 and created an Apache DS server with it. The root DSE reported version of this server is 2.0.0-M6.

      The same problem is also present in the Apache DS bundled with ApacheDirectoryStudio-linux-x86_64-1.5.3.v20100330

      I created the dc=example,dc=com context and the following group

      dn: cn=g1,dc=example,dc=com
      objectClass: groupOfNames
      objectClass: top
      member: dc=example,dc=com
      cn: g1

      I Searched with

      ldapsearch -x -h localhost -p 10389 -D uid=admin,ou=system -w secret -b dc=example,dc=com '(&(objectclass=groupofnames)(owner=*))'

      nothing is returned which is correct

      ldapsearch -x -h localhost -p 10389 -D uid=admin,ou=system -w secret -b dc=example,dc=com '(&(|(objectclass=groupofnames))(owner=*))'

      nothing is returned as expected

      ldapsearch -x -h localhost -p 10389 -D uid=admin,ou=system -w secret -b dc=example,dc=com '(&(|(&(objectclass=groupofnames)))(owner=*))'

      the group g1 is returned which is not expected, and other directories do not return objects with this same setup. The actual filters I want to use are more complicated than this, but this is the simplest one that demonstrates the issue.

        Activity

        Hide
        Emmanuel Lecharny added a comment -

        Have you tried with the latest version, 2.0.0-M7 ?

        Show
        Emmanuel Lecharny added a comment - Have you tried with the latest version, 2.0.0-M7 ?
        Hide
        Emmanuel Lecharny added a comment -

        Btw, I confirm that 2.0.0-M6 dpes not work well with the third filter.

        Show
        Emmanuel Lecharny added a comment - Btw, I confirm that 2.0.0-M6 dpes not work well with the third filter.
        Hide
        Emmanuel Lecharny added a comment -

        And for your information, the third filter returns nothing on trunk (haven't tested it on 2.0.0-M7) so it seems that the pb has been fixed since M6...

        Show
        Emmanuel Lecharny added a comment - And for your information, the third filter returns nothing on trunk (haven't tested it on 2.0.0-M7) so it seems that the pb has been fixed since M6...
        Hide
        Richard Hardy added a comment -

        I just tried M7, the behavior is the same. I do not have an urgent need for this to be fixed, so it is good news that the problem is not in the trunk code.
        Thanks.

        Show
        Richard Hardy added a comment - I just tried M7, the behavior is the same. I do not have an urgent need for this to be fixed, so it is good news that the problem is not in the trunk code. Thanks.
        Hide
        Emmanuel Lecharny added a comment -

        My bad, it does not work well in trunk :/

        I'm going to check what's going on...

        Show
        Emmanuel Lecharny added a comment - My bad, it does not work well in trunk :/ I'm going to check what's going on...
        Hide
        Emmanuel Lecharny added a comment -

        This was a bug deep i the Request decoder. The filters were not built correctly on the server.
        Fixed with http://svn.apache.org/viewvc?rev=1393069&view=rev
        Test added in http://svn.apache.org/viewvc?rev=1393068&view=rev

        Show
        Emmanuel Lecharny added a comment - This was a bug deep i the Request decoder. The filters were not built correctly on the server. Fixed with http://svn.apache.org/viewvc?rev=1393069&view=rev Test added in http://svn.apache.org/viewvc?rev=1393068&view=rev
        Hide
        Emmanuel Lecharny added a comment -

        Closed all the resolved issues

        Show
        Emmanuel Lecharny added a comment - Closed all the resolved issues

          People

          • Assignee:
            Unassigned
            Reporter:
            Richard Hardy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development