directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r749073 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Date Sun, 01 Mar 2009 18:36:32 GMT
Author: elecharny
Date: Sun Mar  1 18:36:32 2009
New Revision: 749073

URL: http://svn.apache.org/viewvc?rev=749073&view=rev
Log:
When we receive a modification request with no ModificationItem, just return instead of writing
the same entry again (RFC 4511 says that the modification must be ignored)

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=749073&r1=749072&r2=749073&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Sun Mar  1 18:36:32 2009
@@ -843,6 +843,12 @@
 
     public void modify( ModifyOperationContext modifyContext ) throws Exception
     {
+        // Special case : if we don't have any modification to apply, just return
+        if ( modifyContext.getModItems().size() == 0 )
+        {
+            return;
+        }
+        
         Partition backend = getPartition( modifyContext.getDn() );
         backend.modify( modifyContext );
     }



Mime
View raw message