directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seman...@apache.org
Subject svn commit: r1681938 - /directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Wed, 27 May 2015 09:14:10 GMT
Author: semancik
Date: Wed May 27 09:14:10 2015
New Revision: 1681938

URL: http://svn.apache.org/r1681938
Log:
Fixing moveAndRename(..) bug.

Modified:
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1681938&r1=1681937&r2=1681938&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Wed May 27 09:14:10 2015
@@ -2631,8 +2631,8 @@ public class LdapNetworkConnection exten
         // Some servers (e.g. OpenDJ 2.6) require a special privilege if
         // newSuperior is specified even if it is the same as the old one. Therefore let's
not
         // specify it if we do not need it. This is better interoperability. 
-        Dn newDnParent = entryDn.getParent();
-        if ( newDnParent != null && !newDnParent.equals( newDn.getParent() ) )
+        Dn newDnParent = newDn.getParent();
+        if ( newDnParent != null && !newDnParent.equals( entryDn.getParent() ) )
         {
             modDnRequest.setNewSuperior( newDnParent );
         }



Mime
View raw message