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

Searches with quotes in the search base do not work as expected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-RC3
    • None
    • 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 quotes in the search base do not work as expected. I have a created a person entry:

      dn: cn=Kylie Minogue,dc=example,dc=com
      objectclass: top
      objectclass: person
      sn: Minogue
      cn: Kylie Minogue

      and try to find it with the following search parameters:

      BASE DN: cn="Kylie Minogue",dc=example,dc=com
      Filter: (cn=Kylie Minogue)
      Scope: BASE

      No entry is found in ApacheDS 1.0 RC3. But RFC 2253 (Lightweight Directory Access Protocol (v3): UTF-8 String Representation of Distinguished Names) requires that implementations must allow a value to be surrounded by quote ('"' ASCII 34) characters, which are not part of the value (Chapter 4. Relationship with RFC 1779 and LDAPv2).

      I have created a JUnit test which imitates the search with the help of JNDI (attached). It works with Sun Java System Directory Server 5.2 and IBM Tivoli Directory Server 6.0.

      Attachments

        1. SearchWithQuotesTest.java
          3 kB
          Stefan Zoerner

        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: