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

StreamingOutputProvider, ByteArrayProvider, FileRangeWriter not annotated with @Provider

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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