You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/03/04 11:55:43 UTC

[Bug 56215] New: sendError doesn't send error page with AsyncContext

https://issues.apache.org/bugzilla/show_bug.cgi?id=56215

            Bug ID: 56215
           Summary: sendError doesn't send error page with AsyncContext
           Product: Tomcat 7
           Version: 7.0.50
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
          Assignee: dev@tomcat.apache.org
          Reporter: alexaltanis@gmail.com

This bug is closely related to 51197 (sendError/sendRedirect don't work with
AsyncContext). It can be reproduced in the test for 51197, which was created by
the reporter of that bug and can be found here:

https://github.com/dcheckoway/async-test

To reproduce this bug, run the test servlet on Tomcat 7, and hit the
"/test/error1" endpoint. This should return a 400 and a related error page. It
does indeed return a 400, but not an error page. 

For the record, this isn't tested by the associated test, namely doTestBug51197
on line 1180 on this  file:

http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java?view=markup&pathrev=1290875

The test only checks that the endpoint returns and that the status code is
correct. The problem, though, is that no error page is generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 56215] sendError doesn't send error page with AsyncContext

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56215

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
See r1297017 and/or section 10.9.2 (last paragraph) of the Servlet 3
specification for an explanation of why the container does not write an error
response in this case.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 56215] sendError doesn't send error page with AsyncContext

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56215

--- Comment #2 from alexaltanis@gmail.com ---
Thank you. Is there a way to reproduce the synchronous behaviour easily?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org