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 2012/07/30 21:07:39 UTC

[Bug 53624] New: sendRedirect doesn't work after a dispatch through the AsyncContext

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

          Priority: P2
            Bug ID: 53624
          Assignee: dev@tomcat.apache.org
           Summary: sendRedirect doesn't work after a dispatch through the
                    AsyncContext
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: rstoyanchev@yahoo.com
          Hardware: PC
            Status: NEW
           Version: 7.0.29
         Component: Catalina
           Product: Tomcat 7

A call to sendRedirect after AsyncContext.dispatch doesn't redirect and returns
with a 200 status code instead.

A project demonstrating the issue:
https://github.com/rstoyanchev/dispatch-test

Build and deploy the source in the 'tomcat-issue-repro'. From the home page of
the deployed application, select the "Redirect" scenario. The scenario involves
Servlet "RedirectA" that creates a thread and dispatches to Servlet
"RedirectB", which in turn redirects to Servlet "RedirectC" and that forwards
to a simple JSP page. Instead of the JSP page rendering, you should see a blank
page and the log output will show that processing ended at ServletC.

For details on the setup see
WebAppInitializer.setupRedirectScenario(ServletContext).

---

FWIW if a forward is used instead of a dispatch from the async thread, the
scenario works. To do that, modify the line that creates servlet "RedirectA" to
be ForwardingAsyncServlet instead of DispatchingAsyncServlet.

---

This issue is very similar to 51197, which was marked resolved in 7.0.25. The
current issue was tested against 7.0.29.

-- 
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 53624] sendRedirect doesn't work after a dispatch through the AsyncContext

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

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
*** Bug 53627 has been marked as a duplicate of this bug. ***

-- 
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 53624] sendRedirect doesn't work after a dispatch through the AsyncContext

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

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

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This looks to have a different root cause.

This has been fixed in trunk and 7.0.x and will be included in 7.0.30 onwards.

-- 
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