You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/06/08 18:27:15 UTC
svn commit: r952725 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/normalization/NormalizationInterceptor.java
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 );
}