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 Seelmann (JIRA)" <ji...@apache.org> on 2009/08/19 13:04:15 UTC
[jira] Created: (DIRSERVER-1401) Infinite loop on moddn, when
moving an entry below itself
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.
[jira] Commented: (DIRSERVER-1401) Infinite loop on moddn, when
moving an entry below itself
Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (DIRSERVER-1401) Infinite loop on moddn, when
moving an entry below itself
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSERVER-1401:
-----------------------------------------
Fix Version/s: 2.0.0-RC1
Definitively to fix ASAP
> 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
> Priority: Critical
> Fix For: 2.0.0-RC1
>
>
> 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.
[jira] Closed: (DIRSERVER-1401) Infinite loop on moddn, when moving
an entry below itself
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann closed DIRSERVER-1401.
--------------------------------------
> 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.
[jira] Resolved: (DIRSERVER-1401) Infinite loop on moddn, when
moving an entry below itself
Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kiran Ayyagari resolved DIRSERVER-1401.
---------------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.0.0-RC1)
1.5.6
Assignee: Kiran Ayyagari
Fixed here http://svn.apache.org/viewvc?rev=917174&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.