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

ClientResponseContextImpl#getEntityStream returns possibly exhausted inputStream

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: