-
Bug
-
Resolution: Done
-
Critical
-
3.6.2.Final
-
None
-
None
@Provider annotation doesn't work with ClientRequestFilter
Steps to reproduce:
- https://github.com/xstefank/reproducers/tree/master/jaxrs-filters
- deploy the app
- curl localhost:8080/jaxrs-filters/ping
- remove javax.ws.rs.ext.Providers
- curl localhost:8080/jaxrs-filters/ping
- custom ClientRequestFilter is not invoked
This is violation of chapter 6.1 of jax-rs spec:
A client filter is a class that implements ClientRequestFilter or ClientResponseFilter or both. A container filter is a class that implements ContainerRequestFilter or ContainerResponseFilter, or both. An entity interceptor is a class that implements ReaderInterceptor or WriterInterceptor, or both. Filters and entity interceptors are providers and, as such, may be annotated with @Provider for automatic discovery.
This is not a regression against RESTEasy 3.0.24.Final (WF11) or RESTEasy 3.0.16.Final
cc mstefank
- is cloned by
-
JBEAP-16499 @Provider annotation doesn't work with ClientRequestFilter
- Closed
- is related to
-
RESTEASY-2163 @Provider annotation should work with all client filters
- Closed
- relates to
-
RESTEASY-2286 ClientRequestFilter Registered on ResteasyClientBuilder is not isolated
- Closed