Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-703

Creation of an entry with multivalued RDN leads to wrong DN in search results.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-RC4
    • None
    • None
    • None
    • * ApacheDS 1.0 RC4 SNAPSHOT
      * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
      * Windows XP Professional SP2

    Description

      I use Apache Directoty Server 1.0 RC4 SNAPSHOT with server.xml unchanged. If I create an entry with multivalued RDN like this:

      dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
      objectclass: top
      objectclass: person
      sn: Bush
      cn: Kate Bush

      i.e.
      $ ldapmodify -D "uid=admin,ou=system" -w ****** -a -f multiValued.ldif
      adding new entry cn=Kate Bush+sn=Bush,dc=example,dc=com
      $

      the entry is returned in searches with a wrong dn:

      $ ldapsearch -D "uid=admin,ou=system" -w ****** -b "dc=example,dc=com" -s one "(sn=Bush)"
      version: 1
      dn: cn=Kate Bush,dc=example,dc=com
      objectclass: person
      objectclass: top
      sn: Bush
      cn: Kate Bush
      $ ldapsearch -D "uid=admin,ou=system" -w ****** -b "cn=Kate Bush+sn=Bush,dc=example,dc=com" -s base "(sn=Bush)"
      version: 1
      dn: cn=Kate Bush,dc=example,dc=com
      objectclass: person
      objectclass: top
      sn: Bush
      cn: Kate Bush
      $

      The expected dn is cn=Kate Bush+sn=Bush,dc=example,dc=com in both cases.
      I'll attach a JUnit test which demonstrates this issue soon.

      Attachments

        1. addedTestsToSVN.ldif
          3 kB
          Alex Karasulu
        2. badUpnameWithRdn.patch
          2 kB
          Alex Karasulu
        3. MultiValuedRdnTest.java
          4 kB
          Stefan Zoerner

        Issue Links

          Activity

            People

              elecharny Emmanuel Lécharny
              szoerner Stefan Zoerner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: