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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: