You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Chetan Mehrotra (Commented) (JIRA)" <ji...@apache.org> on 2012/04/11 18:19:21 UTC

[jira] [Commented] (FELIX-3453) EventAdmin ignoring filters for handler which are registered for all (*) topics

    [ https://issues.apache.org/jira/browse/FELIX-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251699#comment-13251699 ] 

Chetan Mehrotra commented on FELIX-3453:
----------------------------------------

That was fast!! Thanks Carsten
                
> 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.3.0
>            Reporter: Chetan Mehrotra
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: eventadmin-1.3.0
>
>
> 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