directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r818512 - in /directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core: event/EventInterceptor.java operational/OperationalAttributeInterceptor.java
Date Thu, 24 Sep 2009 15:16:16 GMT
Author: elecharny
Date: Thu Sep 24 15:16:13 2009
New Revision: 818512

URL: http://svn.apache.org/viewvc?rev=818512&view=rev
Log:
Fixed 4 failures : the modify operation was not updating the modified entry, but the previous
one, when updating the operational attributes, in some cases. That led to a revival of the
previous values...

Modified:
    directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
    directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java

Modified: directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java?rev=818512&r1=818511&r2=818512&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
Thu Sep 24 15:16:13 2009
@@ -219,7 +219,7 @@
             return;
         }
 
-        opContext.setAlteredEntry( opContext.lookup( opContext.getNewDn(), ByPassConstants.LOOKUP_BYPASS
) );
+        //opContext.setAlteredEntry( opContext.lookup( opContext.getNewDn(), ByPassConstants.LOOKUP_BYPASS
) );
         
         for ( final RegistrationEntry registration : selecting )
         {

Modified: directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java?rev=818512&r1=818511&r2=818512&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
Thu Sep 24 15:16:13 2009
@@ -246,7 +246,7 @@
         // -------------------------------------------------------------------
         ModifyOperationContext newModify = new ModifyOperationContext( opContext.getSession(),

             opContext.getDn(), modItemList );
-        newModify.setEntry( opContext.getEntry() );
+        newModify.setEntry( opContext.getAlteredEntry() );
         service.getPartitionNexus().modify( newModify );
     }
 



Mime
View raw message