Infinite loop on moddn, when moving an entry below itself
---------------------------------------------------------
Key: DIRSERVER-1401
URL: https://issues.apache.org/jira/browse/DIRSERVER-1401
Project: Directory ApacheDS
Issue Type: Bug
Components: ldap
Affects Versions: 1.5.4, 1.5.5
Reporter: Stefan Seelmann
Priority: Critical
Running the following LDIF causes an infinite loop (100% CPU of the ApacheDS
process), the client waits for response. The two entries are created, the moddn
operation then hangs.
-------------------------------------------------------------------------------
# create parent entry
dn: ou=parent,dc=example,dc=com
changetype: add
objectClass: organizationalUnit
objectClass: top
ou: parent
# create child entry
dn: ou=child,ou=parent,dc=example,dc=com
changetype: add
objectClass: organizationalUnit
objectClass: top
ou: child
# now do something bad: make the parent a child of its own child
dn: ou=parent,dc=example,dc=com
changetype: moddn
newrdn: ou=parent
deleteoldrdn: 1
newsuperior: ou=child,ou=parent,dc=example,dc=com
-------------------------------------------------------------------------------
I'd expect an error, OpenLDAP for example returns "error code 53 - cannot place
an entry below itself"
Another problem: When I kill the server and start it again, the two inserted
entries are not visible studio, but when trying to add them I get an "error
code 68 - ENTRY_ALREADY_EXISTS". Seems loke the indices got corrupted.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.