[Bug 63662] New: Tomcat tries to process ClientAbortExceptions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63662] New: Tomcat tries to process ClientAbortExceptions

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63662

            Bug ID: 63662
           Summary: Tomcat tries to process ClientAbortExceptions
           Product: Tomcat 8
           Version: 8.5.43
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ----

We have recently upgraded Tomcat from 8.5.32 to 8.5.43, and we started
receiving ClientAbortExceptions, even though we are explicitly catching them.
On 8.5.43, if there is an ClientAbortException, Tomcat tries to service it like
a regular server exception: it tries to generate the error 500 page.

I've debugged this and Tomcat 8.5.43 chooses a different path in
org.apache.catalina.core.StandardHostValve#invoke(Request, Response) than
8.5.32. This:

// Look for (and render if found) an application level error page
if (response.isErrorReportRequired()) {

returns true on 8.5.43, but false on 8.5.32.

I suspect, this has changed after "response.setError();" was added to
org.apache.coyote.AbstractProcessor#setErrorState(ErrorState, Throwable).

Expected behavior: Tomcat ignores ClientAbortExceptions. It doesn't make sense
to anything else with the response, after we already have lost the client.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63662] Tomcat tries to process ClientAbortExceptions

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63662

Mark Thomas <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 OS|                            |All
         Resolution|---                         |DUPLICATE

--- Comment #1 from Mark Thomas <[hidden email]> ---
Different description but same root cause.

*** This bug has been marked as a duplicate of bug 62258 ***

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]