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

@Provider annotation doesn't work with ClientRequestFilter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.6.2.Final
    • Fix Version/s: 4.0.0.CR1, 3.7.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      @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 Martin Stefanko

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mstefank Martin Stefanko
              Reporter:
              mkopecky Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: