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 2010/11/29 11:42:04 UTC

DO NOT REPLY [Bug 50363] New: Chunked encoding is applied 304 responses with no bodies

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

           Summary: Chunked encoding is applied 304 responses with no
                    bodies
           Product: Tomcat Connectors
           Version: 1.2.30
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: isapi
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: timw@apache.org


When the ISAPI redirector processes a response to a 304 (or 204/205) response
with chunked encoding enabled, and a Content-Length is not specified, chunked
encoding is applied to the empty body, which created an invalid response.

Under normal operation (e.g. DefaultServlet responses), the closing of the
output buffer writes a Content-Length: 0 to the response, which the AJP
connectors don't try to remove for 304 etc. responses (the HTTP connectors do).
This results in 304 responses with Content-Length: 0 headers, which is valid
(if quirky).

This issue can be reproduced by setting a 304 response status and explicitly
calling response.flushBuffer() to commit the response prior to closing the
output buffer.

The ISAPI Redirector also isn't handling a similar case for HEAD requests.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50363] Chunked encoding is applied to 304 responses with no bodies

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

Tim Whittington <ti...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Chunked encoding is applied |Chunked encoding is applied
                   |304 responses with no       |to 304 responses with no
                   |bodies                      |bodies

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 50363] Chunked encoding is applied 304 responses with no bodies

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

Tim Whittington <ti...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
         OS/Version|                            |All

--- Comment #1 from Tim Whittington <ti...@apache.org> 2010-11-29 05:45:33 EST ---
Fixed in trunk - will be released in 1.2.32.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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