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

Searches with escaped characters in the base DN fail.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-RC3
    • 1.0-RC4, 1.5.0
    • None
    • None
    • ApacheDS 1.0 RC 3
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Microsoft Windows XP version 5.1 Service Pack 1

    Description

      Searches with escaped characters in the base DN fail. I have created a test entry like this:

      dn: sn=Ferry,dc=example,dc=com
      objectclass: top
      objectclass: person
      sn: Ferry
      cn: Bryan Ferry

      and perform searches with the following parameters

      1)
      BASE DN: sn=\46\65\72\72\79,dc=example,dc=com
      Filter: (cn=Bryan Ferry)
      Scope: BASE

      2)
      BASE DN: sn=#4665727279,dc=example,dc=com
      Filter: (cn=Bryan Ferry)
      Scope: BASE

      In both cases the entry is not found, although it should (see examples in Chapter 5 of RFC 2253). In example 1 the search base is the DN of the example with "Ferry" escaped with backslashes. The second example is the same search base, but with the value BER encoded (octet String).

      An attached JUnit test creates the entry and performs both search ops. It passes with Sun Java System Directory Server 5.2 but fails with ApacheDS.

      Attachments

        1. SearchWithEscapedCharacters.java
          4 kB
          Stefan Zoerner

        Activity

          People

            akarasulu Alex Karasulu
            szoerner Stefan Zoerner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: