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

StreamingOutputProvider, ByteArrayProvider, FileRangeWriter not annotated with @Provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.0.0.Beta7, 3.6.3.Final
    • 3.6.2.Final, 4.0.0.Beta6, 4.0.0.CR1
    • jaxrs
    • None
    • Workaround Exists
    • Hide

      Set resteasy.use.builtin.providers to true or extend the providers (example given for StreamingOutputProvider) in your project and register them using a custom registration scheme:

      import javax.ws.rs.ext.Provider;
      
      @Provider
      public class AnnotatedStreamingOutputProvider extends StreamingOutputProvider {
      }
      
      Show
      Set resteasy.use.builtin.providers to true or extend the providers (example given for StreamingOutputProvider ) in your project and register them using a custom registration scheme: import javax.ws.rs.ext.Provider; @Provider public class AnnotatedStreamingOutputProvider extends StreamingOutputProvider { }
    • Low
    • - Add missing annotation @Provider to StreamingOutputProvider, ByteArrayProvider and FileRangeWriter

      The providers org.jboss.resteasy.plugins.providers.StreamingOutputProvider, org.jboss.resteasy.plugins.providers.ByteArrayProvider and org.jboss.resteasy.plugins.providers.FileRangeWriter are not annotated with @javax.ws.rs.ext.Provider.

      This can break custom provider registration logic which assumes all providers are annotated.

      The documentation explicitly suggests providers are supposed to be annotated:
      Content_Marshalling_with__Provider_classes

              rhn-support-asoldano Alessio Soldano
              lyind Jonas Zeiger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 15 minutes
                  15m
                  Remaining:
                  Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - Not Specified Time Not Required
                  Not Specified