directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1477725 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Date Tue, 30 Apr 2013 17:05:49 GMT
Author: elecharny
Date: Tue Apr 30 17:05:49 2013
New Revision: 1477725

URL: http://svn.apache.org/r1477725
Log:
Don't inject the interceptor in the list of selected interceptors for an operation if it's
name is already in the list.
This solve a issue when we add an interceptor which extends an existing one (otherwise the
operation would be executed twice)

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=1477725&r1=1477724&r2=1477725&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Tue Apr 30 17:05:49 2013
@@ -540,7 +540,11 @@ public class DefaultDirectoryService imp
 
             if ( hasCorrestSig && method.getName().equals( operation.getMethodName()
) )
             {
-                selectedInterceptorList.add( interceptor.getName() );
+                if ( !selectedInterceptorList.contains( interceptor.getName() ) )
+                {
+                    selectedInterceptorList.add( interceptor.getName() );
+                }
+
                 break;
             }
         }



Mime
View raw message