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

Different getEntityStream behavior depending on version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 3.0.14.Final, 3.11.0.Final, 4.6.0.Final
    • jaxrs
    • None
    • Hide

      1. Create 2 ClientResponseFilter's, both reading entity stream (without any reset of stream after reading it)
      Depending on version, everything works fine, or you are getting error about closing entity stream.

      Show
      1. Create 2 ClientResponseFilter's, both reading entity stream (without any reset of stream after reading it) Depending on version, everything works fine, or you are getting error about closing entity stream.

    Description

      Some time ago we started migration from wildfly 10 to wildfly 19, which has changed versions of resteasy (3.0.14 to 3.11). We had few custom ClientResponseFilter's to handle logging, errors etc. and in few of those entity was read with getEntityStream.

      The problem is that in 3.0.14 this stream was somehow automatically reset, and there was no need to do it after reading it in ClientResponseFilter. However on 3.11 we get "Stream is closed" after reading it in second executed filter.

      Attachments

        Activity

          People

            Unassigned Unassigned
            oszust002 Kamil Osuch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: