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

Apply LDIF with special crafted DN creates two CN attributes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M21
    • Fix Version/s: 2.0.0.AM25
    • Component/s: None
    • Labels:
      None

      Description

      In Studio we have a test that injects an entry with a special crafted DN (cn starts with #, contains plus, comma, quotes). This entry is injected using the @ApplyLdifFiles annotation. The injected entry then contains two CN attributes, one with proper unescaped value, one with still escaped value.

      Here is the LDIF:

      # cn=\#\\\+\, \"öé\",ou=users,ou=system
      dn:: Y249XCNcXFwrXCwgXCLDtsOpXCIsb3U9dXNlcnMsb3U9c3lzdGVt
      objectClass: inetOrgPerson
      objectClass: organizationalPerson
      objectClass: person
      objectClass: top
      cn:: I1wrLCAiw7bDqSI=
      sn:: I1wrLCAiw7bDqSI=
      givenName:: I1wrLCAiw7bDqSI=
      uid:: I1wrLCAiw7bDqSI=
      

      Here the sysout of the injected entry with the two CN attributes:

          dn[n]: cn=\#\\\+\, \"öé\",ou=users,ou=system
          objectclass: organizationalPerson
          objectclass: person
          objectclass: inetOrgPerson
          objectclass: top
          givenname: #\+, "öé"
          uid: #\+, "öé"
          cn: #\+, "öé"
          cn: \#\\\+\, \"öé\"
          sn: #\+, "öé"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                seelmann Stefan Seelmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: