directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r952725 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
Date Tue, 08 Jun 2010 16:27:15 GMT
Author: elecharny
Date: Tue Jun  8 16:27:15 2010
New Revision: 952725

URL: http://svn.apache.org/viewvc?rev=952725&view=rev
Log:
Removed some useless normalization for the move operation

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java?rev=952725&r1=952724&r2=952725&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
Tue Jun  8 16:27:15 2010
@@ -176,8 +176,16 @@ public class NormalizationInterceptor ex
      */
     public void move( NextInterceptor nextInterceptor, MoveOperationContext opContext ) throws
LdapException
     {
-        opContext.getDn().normalize( schemaManager.getNormalizerMapping() );
-        opContext.getParent().normalize( schemaManager.getNormalizerMapping() );
+        if ( !opContext.getDn().isNormalized() )
+        {
+            opContext.getDn().normalize( schemaManager.getNormalizerMapping() );
+        }
+
+        if ( !opContext.getParent().isNormalized() )
+        {
+            opContext.getParent().normalize( schemaManager.getNormalizerMapping() );
+        }
+
         nextInterceptor.move( opContext );
     }
 



Mime
View raw message