You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Kiran Ayyagari (JIRA)" <ji...@apache.org> on 2010/02/28 15:18:05 UTC

[jira] Commented: (DIRSERVER-1401) Infinite loop on moddn, when moving an entry below itself

    [ https://issues.apache.org/jira/browse/DIRSERVER-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839420#action_12839420 ] 

Kiran Ayyagari commented on DIRSERVER-1401:
-------------------------------------------

an efficient fix committed here http://svn.apache.org/viewvc?rev=917183&view=rev

> 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.5, 1.5.4
>            Reporter: Stefan Seelmann
>            Assignee: Kiran Ayyagari
>            Priority: Critical
>             Fix For: 1.5.6
>
>
> 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.