Rename entry gives LdapNameNotFoundException
--------------------------------------------

                 Key: DIRSERVER-1011
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1011
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: mitosis
    Affects Versions: 1.5.0
            Reporter: Martin Alderson


Renaming an entry with mitosis enabled gives an LdapNameNotFoundException for 
the target DN.

For example, the code ctxA.rename( "cn=test,ou=system", "cn=test2,ou=system" ) 
where the first DN exists and the second does not will give the following 
exception:

org.apache.directory.shared.ldap.exception.LdapNameNotFoundException: 
cn=test2,ou=system
        at 
org.apache.directory.server.core.partition.DefaultPartitionNexus.getPartition(DefaultPartitionNexus.java:1082)
        at 
org.apache.directory.server.core.partition.DefaultPartitionNexus.hasEntry(DefaultPartitionNexus.java:1003)
        at 
org.apache.directory.mitosis.operation.OperationFactory.checkBeforeAdd(OperationFactory.java:308)
        at 
org.apache.directory.mitosis.operation.OperationFactory.newAdd(OperationFactory.java:118)
        at 
org.apache.directory.mitosis.operation.OperationFactory.newMove(OperationFactory.java:289)
        at 
org.apache.directory.mitosis.operation.OperationFactory.newModifyRn(OperationFactory.java:220)
        at 
org.apache.directory.mitosis.service.ReplicationService.rename(ReplicationService.java:430)
        ...


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to