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

The JSON Binding provider should ensure the entity input stream is not closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 6.2.6.Final, 7.0.0.Alpha1
    • 6.2.5.Final, 7.0.0.Alpha1
    • Providers
    • None

    Description

      The JsonBindingProvider uses a delegate InputStream for the entity. The JavaDoc for the MessageBodyReader states the following for the entityStream parameter:

      entityStream – the InputStream of the HTTP entity. The caller is responsible for ensuring that the input stream ends when the entity has been consumed. The implementation should not close the input stream.

      Given this, RESTEasy should ensure the Jakarta JSON Binding implementation cannot close the InputStream.

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: