You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Zoerner (JIRA)" <ji...@apache.org> on 2006/06/01 14:45:29 UTC

[jira] Created: (DIRSERVER-628) Creation of entry with multivalued RDN leads to wrong attribute value

Creation of entry with multivalued RDN leads to wrong attribute value
---------------------------------------------------------------------

         Key: DIRSERVER-628
         URL: http://issues.apache.org/jira/browse/DIRSERVER-628
     Project: Directory ApacheDS
        Type: Bug

    Versions: 1.0-RC3    
 Environment: 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
    Reporter: Stefan Zoerner


Adding the following entry to ApacheDS (server.xml configuration unchanged):

dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
objectclass: top
objectclass: person
sn: Bush
cn: Kate Bush

i.e. 
$ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif

leads to an entry with wrong value for cn:

$ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(sn=Bush)"
version: 1
dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
objectclass: person
objectclass: top
sn: Bush
cn: Kate Bush+sn=Bush

Note the value of cn is "Kate Bush+sn=Bush", not "Kate Bush" as expected. 

The same behavior with corresponding JNDI code, I will attach a simple JUnit test for this.

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


[jira] Assigned: (DIRSERVER-628) Creation of entry with multivalued RDN leads to wrong attribute value

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-628?page=all ]

Alex Karasulu reassigned DIRSERVER-628:
---------------------------------------

    Assignee: Alex Karasulu

> Creation of entry with multivalued RDN leads to wrong attribute value
> ---------------------------------------------------------------------
>
>                 Key: DIRSERVER-628
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-628
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: 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
>            Reporter: Stefan Zoerner
>         Assigned To: Alex Karasulu
>         Attachments: DIRSERVER-628.patch, MultiValuedRdnTest.java
>
>
> Adding the following entry to ApacheDS (server.xml configuration unchanged):
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Bush
> cn: Kate Bush
> i.e. 
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> leads to an entry with wrong value for cn:
> $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(sn=Bush)"
> version: 1
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush+sn=Bush
> Note the value of cn is "Kate Bush+sn=Bush", not "Kate Bush" as expected. 
> The same behavior with corresponding JNDI code, I will attach a simple JUnit test for this.

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

        

[jira] Updated: (DIRSERVER-628) Creation of entry with multivalued RDN leads to wrong attribute value

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-628?page=all ]

Stefan Zoerner updated DIRSERVER-628:
-------------------------------------

    Attachment: MultiValuedRdnTest.java

Here is a simple JUnit test which demonstrates the issue. The test passes with Sun Java System Directory Server 5.2, for instance.

> Creation of entry with multivalued RDN leads to wrong attribute value
> ---------------------------------------------------------------------
>
>          Key: DIRSERVER-628
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-628
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: 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
>     Reporter: Stefan Zoerner
>  Attachments: MultiValuedRdnTest.java
>
> Adding the following entry to ApacheDS (server.xml configuration unchanged):
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Bush
> cn: Kate Bush
> i.e. 
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> leads to an entry with wrong value for cn:
> $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(sn=Bush)"
> version: 1
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush+sn=Bush
> Note the value of cn is "Kate Bush+sn=Bush", not "Kate Bush" as expected. 
> The same behavior with corresponding JNDI code, I will attach a simple JUnit test for this.

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


[jira] Updated: (DIRSERVER-628) Creation of entry with multivalued RDN leads to wrong attribute value

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-628?page=all ]

Alex Karasulu updated DIRSERVER-628:
------------------------------------

    Attachment: DIRSERVER-628.patch

Adding patch for preview.

> Creation of entry with multivalued RDN leads to wrong attribute value
> ---------------------------------------------------------------------
>
>                 Key: DIRSERVER-628
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-628
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: 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
>            Reporter: Stefan Zoerner
>         Assigned To: Alex Karasulu
>         Attachments: DIRSERVER-628.patch, MultiValuedRdnTest.java
>
>
> Adding the following entry to ApacheDS (server.xml configuration unchanged):
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Bush
> cn: Kate Bush
> i.e. 
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> leads to an entry with wrong value for cn:
> $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(sn=Bush)"
> version: 1
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush+sn=Bush
> Note the value of cn is "Kate Bush+sn=Bush", not "Kate Bush" as expected. 
> The same behavior with corresponding JNDI code, I will attach a simple JUnit test for this.

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

        

[jira] Closed: (DIRSERVER-628) Creation of entry with multivalued RDN leads to wrong attribute value

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-628?page=all ]

Alex Karasulu closed DIRSERVER-628.
-----------------------------------

    Fix Version/s: 1.1.0
                   1.0-RC4
       Resolution: Fixed

Applied patch to trunk 1.1 branch and to 1.0 branch.

> Creation of entry with multivalued RDN leads to wrong attribute value
> ---------------------------------------------------------------------
>
>                 Key: DIRSERVER-628
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-628
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.0-RC3
>         Environment: 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
>            Reporter: Stefan Zoerner
>         Assigned To: Alex Karasulu
>             Fix For: 1.1.0, 1.0-RC4
>
>         Attachments: DIRSERVER-628.patch, MultiValuedRdnTest.java
>
>
> Adding the following entry to ApacheDS (server.xml configuration unchanged):
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: top
> objectclass: person
> sn: Bush
> cn: Kate Bush
> i.e. 
> $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif
> leads to an entry with wrong value for cn:
> $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(sn=Bush)"
> version: 1
> dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
> objectclass: person
> objectclass: top
> sn: Bush
> cn: Kate Bush+sn=Bush
> Note the value of cn is "Kate Bush+sn=Bush", not "Kate Bush" as expected. 
> The same behavior with corresponding JNDI code, I will attach a simple JUnit test for this.

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