Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2084

@Provider annotation doesn't work with ClientRequestFilter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.0.0.CR1, 3.7.0.Final
    • 3.6.2.Final
    • None
    • None

      @Provider annotation doesn't work with ClientRequestFilter

      Steps to reproduce:

      1. https://github.com/xstefank/reproducers/tree/master/jaxrs-filters
      2. deploy the app
      3. curl localhost:8080/jaxrs-filters/ping
      4. remove javax.ws.rs.ext.Providers
      5. curl localhost:8080/jaxrs-filters/ping
      6. 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

              mstefank Martin Stefanko
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: