directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Zoerner (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Updated: (DIREVE-216) Adding new object classes to an entry removes the old ones
Date Wed, 10 Aug 2005 14:00:59 GMT
     [ http://issues.apache.org/jira/browse/DIREVE-216?page=all ]

Stefan Zoerner updated DIREVE-216:
----------------------------------

    Attachment: AddObjectClassesToEntryTest.java

This is getting tricky. In order to resolve the confusion I created a JUnit Testcase which
uses JNDI to connect to the Directory Server via LDAP and demonstrates the error situation.
This is probably easier to use/integrate than the LDIF and the JLDAP tests above. 

With the current version of apacheds-main-0.9.2-SNAPSHOT.jar, two of the three tests fail.
Especially the situation, Ugo described above (top missing after modification), is shown.

I checked the test case with another LDAP implementation (Sun) -- all three tests ran as expected.

In order to run the tests, a valid jndi.properties is needed.
My configuration was:
---
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
java.naming.provider.url=ldap://localhost:10389/ou=system
java.naming.security.principal=uid=admin,ou=system
java.naming.security.credentials=*****
java.naming.security.authentication=simple
---
I hope this helps.

> Adding new object classes to an entry removes the old ones
> ----------------------------------------------------------
>
>          Key: DIREVE-216
>          URL: http://issues.apache.org/jira/browse/DIREVE-216
>      Project: Directory Server
>         Type: Bug
>     Versions: 0.9.1
>  Environment: Server: ApacheDS 0.9.1 on Windows XP 
> java version "1.5.0_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
> Client: Windows XP
> Command line tool ldapadd (from IBM Tivoli Directory Server)
> or Softerra LDAP Administrator 3.2
>     Reporter: Stefan Zoerner
>     Assignee: Alex Karasulu
>      Fix For: 0.9.2
>  Attachments: AddObjectClassesToEntryTest.java, LDAPModifyAddTest.java, ldap.jar, patch_testCase_AddOpbjectClasses.txt
>
> If additional objectclasses are added to an existing entry by a client, the old ones
are lost.
>  e.g. applying the following LDIF to ApacheDS
> --8<--
> # create an entry for a person
> #
> dn: cn=Tori Amos,ou=system
> changetype: add
> objectclass: top
> objectclass: person
> cn: Tori Amos
> sn: Amos
> description: an American singer-songwriter
> # add objectclasses and uid
> #
> dn: cn=Tori Amos,ou=system
> changetype: modify
> add: objectclass
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> -
> add: uid
> uid: tamos
> -
> -->8--
> leaves an entry behind with only two (instead of all for objectclasses):
> $ ldapadd -p 10389 -D uid=admin,ou=system -w *** -f addAndModifyObjectClasses.ldif
> adding new entry cn=Tori Amos,ou=system
> modifying entry cn=Tori Amos,ou=system
> $ ldapsearch -p 10389 -b "ou=system" "(cn=Tori Amos)"
> cn=Tori Amos,ou=system
> sn=Amos
> objectclass=inetOrgPerson
> objectclass=organizationalPerson
> cn=Tori Amos
> uid=tamos
> description=an American singer-songwriter
> ---
> Expected result would be:
> cn=Tori Amos,ou=system
> sn=Amos
> objectclass=top
> objectclass=person
> objectclass=inetOrgPerson
> objectclass=organizationalPerson
> cn=Tori Amos
> uid=tamos
> description=an American singer-songwriter

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