directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-796) LdapDn.toString() doesn't return valid parseable DN string
Date Wed, 13 Dec 2006 13:57:22 GMT
    [ http://issues.apache.org/jira/browse/DIRSERVER-796?page=comments#action_12458120 ] 
            
Emmanuel Lecharny commented on DIRSERVER-796:
---------------------------------------------

I confirlm that it's a serious bug. For instance, let's consider this test :

LdapDN dn1 = new LdapDN( "a=b,c=d,e=f" );
LdapDN dn2 = new LdapDN( "a=b\\,c\\=d,e=f" );

When comparing those two different DN into the server, we use the normalized form of the dn,
which is :
a=b,c=d,e=f
for both value. So those two DNs will be considered as equals, leading to an error when searching
for those DN into the backend...

This is BAD :(

> LdapDn.toString() doesn't return valid parseable DN string
> ----------------------------------------------------------
>
>                 Key: DIRSERVER-796
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-796
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.5.0, 1.0
>            Reporter: Norval Hope
>
> If you do the following:
>     LdapDN  dn = new LdapDN("oU=a\\,comma,O=acme");
> then you get the following
>     1. dn.toString() = dn.getNormName()        = 'ou=a,comma,o=acme'
>     2. dn.getUpName()                                        = 'oU=a\,comma,O=acme'
> Due to the value returned in 1. the following results in a parsing exception
>    LdapDN  dn = new LdapDN(new LdapDN("oU=a\\,comma,O=acme").getNormName());  
> I think the value in 1. should still be a valid parseable DN string instead, namely 'ou=a\,comma,o=acme'

-- 
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

        

Mime
View raw message