felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3453) EventAdmin ignoring filters for handler which are registered for all (*) topics
Date Wed, 11 Apr 2012 13:43:17 GMT
EventAdmin ignoring filters for handler which are registered for all (*) topics

                 Key: FELIX-3453
                 URL: https://issues.apache.org/jira/browse/FELIX-3453
             Project: Felix
          Issue Type: Bug
          Components: Event Admin
    Affects Versions: eventadmin 1.0.0
            Reporter: Chetan Mehrotra
            Priority: Minor

Apache Sling has a DistributingEventHandler [1] which is registered with following properties
- event.topics=*
- event.filter=(event.distribute=*)

However at runtime the handler still gets events which does not have event.distribute property
set. Looking at EventHandlerProxy.update [2] it appears that EventHandler's filter is ignored
if the topic is set to *. 

Expected behavior is that EventHandlerProxy should also use the filter to determine which
events are to be sent to the handler even if topic is set to '*'

[1] http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/DistributingEventHandler.java
[2] http://svn.apache.org/viewvc/felix/trunk/eventadmin/impl/src/main/java/org/apache/felix/eventadmin/impl/handler/EventHandlerProxy.java?view=markup

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message