[jboss-jira] [JBoss JIRA] (WFLY-2495) ContainerXFilter not invoked when registered via DynamicFeature in JAX-RS

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Mon Nov 25 09:04:06 EST 2013


     [ https://issues.jboss.org/browse/WFLY-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas reassigned WFLY-2495:
------------------------------------

    Assignee: Bill Burke  (was: Stuart Douglas)


It sounds like this is a JAX-RS issue rather than a Wildfly integration issue?
                
> ContainerXFilter not invoked when registered via DynamicFeature in JAX-RS
> -------------------------------------------------------------------------
>
>                 Key: WFLY-2495
>                 URL: https://issues.jboss.org/browse/WFLY-2495
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: REST
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Aslak Knutsen
>            Assignee: Bill Burke
>
> {code}
> @Provider
> public class DynamicServerLogggingFilterFeature implements DynamicFeature {
>     @Override
>     public void configure(ResourceInfo ri, FeatureContext fc) {
>         if (MyResource.class.isAssignableFrom(ri.getResourceClass())
>                 && ri.getResourceMethod().isAnnotationPresent(GET.class)) {
>             fc.register(new ServerLoggingFilter());
>         }
>     }
> }
> @Provider
> @ServerLogged
> public class ServerLoggingFilter implements ContainerRequestFilter, ContainerResponseFilter {
> ...
> }
> {code}
> DynamicServerLogggingFilterFeature is called the the ServerLoggingFilter is registered in the FeatureContext, but the filter(ContainerXContext crc) is never called on the ServerLoggingFilter.
> Sample: https://github.com/arun-gupta/javaee7-samples/tree/master/jaxrs/dynamicfilter

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list