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

ClientResponseContextImpl#getEntityStream returns possibly exhausted inputStream

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.6.0.Final, 4.0.0.Beta4
    • None
    • jaxrs
    • None

    Description

      Currently, a response filter that chooses to read the response context's getEntityStream is returning the inputStream.
      This is fine if the stream has not been read already. But if it ends up being buffered, either internally or via bufferEntity(), the input stream is exhausted.

      Returning the entity stream from the response fixes this issue.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            rhn-support-asoldano Alessio Soldano
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: