directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r937518 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Date Fri, 23 Apr 2010 21:04:02 GMT
Author: elecharny
Date: Fri Apr 23 21:04:02 2010
New Revision: 937518

URL: http://svn.apache.org/viewvc?rev=937518&view=rev
Log:
Modified a call to facilitate debugging and step thorugh

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java?rev=937518&r1=937517&r2=937518&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/LdapCoreSessionConnection.java
Fri Apr 23 21:04:02 2010
@@ -727,13 +727,16 @@ public class LdapCoreSessionConnection i
     /**
      * {@inheritDoc}
      */
-    public ModifyDnResponse rename( String entryDn, String newRdn ) throws LdapException
+    public ModifyDnResponse rename( String entryDn, String rdn ) throws LdapException
     {
         ModifyDnResponse resp = new ModifyDnResponse();
         resp.setLdapResult( getDefaultResult() );
+        
         try
         {
-            session.rename( new DN( entryDn ), new RDN( newRdn ), false );
+            DN newDn = new DN( entryDn );
+            RDN newRdn = new RDN( rdn );
+            session.rename( newDn, newRdn, false );
         }
         catch ( Exception e )
         {



Mime
View raw message