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

Async filter exception bug

    XMLWordPrintable

Details

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

    Description

      If we have an async response (returning CompletionStage for example, and a filter throws an exception while writing the response, the exception used to be silently ignored by CompletionStage, which meant that the client would hang waiting for the response, and nothing would be logged.

      I fixed this, but it also means I don't throw UnhandledException to the container anymore in such cases, because it's very hard (if not impossible) to know at that point if the container is still in our call stack, or if we're in another thread entirely, in which case the container would never get the exception, and the exception would be caught by whatever happened to complete the async response, which is just wrong.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            separdau@redhat.com Stephane Epardaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: