Summary: | getParameters() fails on chunked POST requests with trailers | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Dan Luca <dan.luca> |
Component: | Servlet & JSP API | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.0.29 | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
Sample code to expose the issue
2010-11-07_tc7_49860_r1003461_testcase.patch |
Description
Dan Luca
2010-09-01 20:12:43 UTC
Created attachment 26265 [details] 2010-11-07_tc7_49860_r1003461_testcase.patch Re: r1003461 A testcase that demonstrates that the current TC7 solution for this issue (r1003461) is broken. It is a modification of the existing test case. I split the original request into two packets and added more text to it. Expected behaviour: Success of the test. Actual behaviour: java.net.SocketTimeoutException: Read timed out This happens because CRLF symbols are overwritten when copying the text around the buffer (because of wrong offsets etc.) and thus Tomcat misses the chunk end and reads for more data. The 7.0.x fix has been updated and will be included in 7.0.5 onwards. A port of the fix has been proposed for 6.0.x This has been fixed in 6.0.x and will be included in 6.0.30 onwards. |