directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r943270 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
Date Tue, 11 May 2010 20:25:08 GMT
Author: kayyagari
Date: Tue May 11 20:25:08 2010
New Revision: 943270

URL: http://svn.apache.org/viewvc?rev=943270&view=rev
Log:
fix for DIRSERVER-1502

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java?rev=943270&r1=943269&r2=943270&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/event/EventInterceptor.java
Tue May 11 20:25:08 2010
@@ -303,9 +303,15 @@ public class EventInterceptor extends Ba
         {
             NotificationCriteria criteria = registration.getCriteria();
             
-            if ( evaluator.evaluate( criteria.getFilter(), criteria.getBase(), entry ) )
+            DN base = criteria.getBase();
+
+            // fix for DIRSERVER-1502
+            if( name.equals( base ) || name.isChildOf( base ) )
             {
-                selecting.add( registration );
+                if ( evaluator.evaluate( criteria.getFilter(), base, entry ) )
+                {
+                    selecting.add( registration );
+                }
             }
         }
 



Mime
View raw message