Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1843

In case of error (HTTP status >= 400) JAX-RS client connections can't be closed

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2018.2.0
    • Fix Version/s: 2018.3.3
    • Component/s: microprofile
    • Labels:
      None

      Description

      As described in https://groups.google.com/forum/#!topic/wildfly-swarm/pkmoZrd5lxI a JAX-RS-client (from microprofile-restclient) can't be reused when a problem occurred (HTTP status >= 400). In case of error the entity stream of the response is not closed by RestEasy (which conforms to the spec, if I understand the discussion in the RestEasy Jira correctly), so it has to be done in the error management. The close-Method of PartialResponse should be implemented, so it can be handled by client.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                balok1701 Werner Greßhoff
                Reporter:
                balok1701 Werner Greßhoff
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: