directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1307356 - /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Date Fri, 30 Mar 2012 11:03:08 GMT
Author: pamarcelot
Date: Fri Mar 30 11:03:08 2012
New Revision: 1307356

URL: http://svn.apache.org/viewvc?rev=1307356&view=rev
Log:
Fix for DIRSTUDIO-799 (Unable to move object with Apache LDAP API).

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1307356&r1=1307355&r2=1307356&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Fri Mar 30 11:03:08 2012
@@ -47,8 +47,6 @@ import org.apache.directory.ldap.client.
 import org.apache.directory.ldap.client.api.LdapConnectionConfig;
 import org.apache.directory.ldap.client.api.LdapNetworkConnection;
 import org.apache.directory.ldap.client.api.exception.InvalidConnectionException;
-import org.apache.directory.shared.ldap.codec.api.BinaryAttributeDetector;
-import org.apache.directory.shared.ldap.codec.api.ConfigurableBinaryAttributeDetector;
 import org.apache.directory.shared.ldap.codec.api.DefaultConfigurableBinaryAttributeDetector;
 import org.apache.directory.shared.ldap.codec.protocol.mina.LdapProtocolCodecActivator;
 import org.apache.directory.shared.ldap.model.cursor.SearchCursor;
@@ -772,7 +770,8 @@ public class DirectoryApiConnectionWrapp
      *      an array of converted modifications
      * @throws LdapInvalidAttributeValueException 
      */
-    private Modification[] convertModificationItems( ModificationItem[] modificationItems
) throws LdapInvalidAttributeValueException
+    private Modification[] convertModificationItems( ModificationItem[] modificationItems
)
+        throws LdapInvalidAttributeValueException
     {
         if ( modificationItems != null )
         {
@@ -848,6 +847,7 @@ public class DirectoryApiConnectionWrapp
                     request.setDeleteOldRdn( deleteOldRdn );
                     Dn newName = new Dn( newDn );
                     request.setNewRdn( newName.getRdn() );
+                    request.setNewSuperior( newName.getParent() );
                     request.addAllControls( convertControls( controls ) );
 
                     // Performing the rename operation



Mime
View raw message