directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-703) Creation of an entry with multivalued RDN leads to wrong DN in search results.
Date Fri, 11 Aug 2006 13:46:17 GMT
    [ http://issues.apache.org/jira/browse/DIRSERVER-703?page=comments#action_12427523 ] 
            
Alex Karasulu commented on DIRSERVER-703:
-----------------------------------------

This looks like an LDAP DN issue.  It happens after an add all to the LDAP dn.  Here's a test
that shows how this is broken:

    /**
     * Test to see if a DN with multiRdn values is preserved after an addAll.
     */
    public void testAddAllWithMultivaluedAttribute() throws InvalidNameException
    {
        LdapDN dn = new LdapDN( "cn=Kate Bush+sn=Bush,ou=system" );
        LdapDN target = new LdapDN();
        target.addAll( target.size(), dn );
        assertEquals( "cn=Kate Bush+sn=Bush,ou=system", target.toString() );
        assertEquals( "cn=Kate Bush+sn=Bush,ou=system", target.getUpName() );
    }

Trying to fix this now.


> Creation of an entry with multivalued RDN leads to wrong DN in search results.
> ------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-703
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-703
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC4
>         Environment: * ApacheDS 1.0 RC4 SNAPSHOT
> * Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
> * Windows XP Professional SP2
>            Reporter: Stefan Zoerner
>         Assigned To: Alex Karasulu
>         Attachments: MultiValuedRdnTest.java
>
>
> I use Apache Directoty Server 1.0 RC4 SNAPSHOT with server.xml unchanged. If I create
an entry with multivalued RDN like this:
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Bush
> cn: Kate Bush 
> i.e. 
> $ ldapmodify -D "uid=admin,ou=system" -w ****** -a -f multiValued.ldif
> adding new entry cn=Kate Bush+sn=Bush,dc=example,dc=com
> $
> the entry is returned in searches with a wrong dn:
> $ ldapsearch -D "uid=admin,ou=system" -w ****** -b "dc=example,dc=com" -s one "(sn=Bush)"
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> $ ldapsearch -D "uid=admin,ou=system" -w ****** -b "cn=Kate Bush+sn=Bush,dc=example,dc=com"
-s base "(sn=Bush)"
> version: 1
> dn: cn=Kate Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush
> $
> The expected dn is cn=Kate Bush+sn=Bush,dc=example,dc=com in both cases.
> I'll attach a JUnit test which demonstrates this issue soon.

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