Details
Description
The current 1.0 branch contains an error which causes valid modifyDN operations to fail with result code 32 (NO_SUCH_OBJECT). Here is an example:
I use the server.xml unchanged and add an entry (tori.ldif) like this:
dn: cn=Myra Ellen Amos,dc=example,dc=com
objectclass: top
objectclass: person
sn: Amos
cn: Myra Ellen Amos
via a
$ ldapmodify -D "uid=admin,ou=system" -w secret -a -f tori.ldif
adding new entry cn=Myra Ellen Amos,dc=example,dc=com
afterwards I try to change it, via modifyTori.ldif:
dn: cn=Myra Ellen Amos,dc=example,dc=com
changetype: modrdn
newrdn: cn=Tori Amos
deleteoldrdn: 1
applied:
$ ldapmodify -D "uid=admin,ou=system" -w secret -f modifyTori.ldif
modifying RDN of entry cn=Myra Ellen Amos,dc=example,dc=com
ldap_rename: No such object
ldap_rename: additional info: failed to modify DN of entry cn=Myra Ellen Amos,dc=example,dc=com
$
Appropriate test cases are in the org.apache.directory.server.ModifyRdnTest of the server-unit project, some of them currently (snapshot from August 4) fails (which is good).