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

            Bug ID: 55688
           Summary: SendRedirect does not work with AsyncContext
           Product: Tomcat 7
           Version: 7.0.42
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: vicky...@gmail.com

Created attachment 30951
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30951&action=edit
Sample war file which can help reproduce the issue.

Hi,

I recently moved from Tomcat 7.0.32 to 7.0.42. One of my application logic has
stopped working since the upgrade.

The problem seems to be with using response.sendRedirect and AsyncContext.
Without the AsyncContext in picture "sendRedirect" seems to work fine.

Follow the below steps to reproduce this,
1. Copy the attached war in to 7.0.32/Webapps
2. Hit "localhost:8080/Sample/test"
3. In some time you should get redirected to http://www.google.com

Do the same steps with 7.0.42, i don't see any error/exceptions, but the
request just times out i guess. To see more details, when i put a proxy tool in
between, the response i got was,
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Location: http://www.google.com/
Transfer-Encoding: chunked
Date: Tue, 22 Oct 2013 08:15:03 GMT
Connection: close

0

Note - I did see issue no 51197, it talks about similar issue and is marked as
resolved, but it seems that the fix was only relative to "sendError" and not
"sendRedirect".

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

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

Reply via email to