You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2006/10/04 19:22:20 UTC

[jira] Resolved: (DIRSERVER-756) Problem with escaped comma in DN

     [ http://issues.apache.org/jira/browse/DIRSERVER-756?page=all ]

Emmanuel Lecharny resolved DIRSERVER-756.
-----------------------------------------

    Resolution: Invalid

This is not an ADS issue, but a problem in the way LdapSearch transform the DN into a String. An issue has been raised months ago with this problem (DIRSERVER-631) and fixed in version 1.0-RC4.

We have some Unit test to test this kind of special cases :

   public void testDIRSERVER_631_1() throws NamingException
   {
       LdapDN name = new LdapDN( "cn=Bush\\, Kate,dc=example,dc=com" );

       Assert.assertEquals( "cn=Bush, Kate,dc=example,dc=com", name.toString() );
       Assert.assertEquals( "cn=Bush\\, Kate,dc=example,dc=com", name.getUpName() );

   }

As you can see, the User Provided DN (name.getUpName()) returns correctly the very same DN. The normalized form does not escape the ',', which is plain normal.

> Problem with escaped comma in DN
> --------------------------------
>
>                 Key: DIRSERVER-756
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-756
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: pre-1.0, 1.0-RC4
>            Reporter: Endi S. Dewata
>
> 1. Add the following entry:
> ldapadd -h localhost -p 10389 -D uid=admin,ou=system -w secret -x
> dn: cn=Dewata\, Endi,ou=Users,ou=system
> objectClass: person
> cn: Dewata, Endi
> sn: Dewata
> 2. Search the entry:
> ldapsearch -h localhost -p 10389 -D uid=admin,ou=system -w secret -x -b "ou=system"
> #
> dn: cn=Dewata, Endi,ou=Users,ou=system
> objectclass: person
> objectclass: top
> sn: Dewata
> cn: Dewata, Endi
> The escape character (\) is missing from the DN, causing it to become invalid.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira