Summary: | ServletInputStream still readable even when closed | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | Damien Bonvillain <kame> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | Unknown | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Echo "OK" if the behaviour is correct, "KO" otherwise |
This has been fixed in 6.0.x and will be included in the next release. It has been proposed for inclusion in 5.0.x. This has been fixed in 5.5.x and will be included in 5.5.27 onwards. |
Created attachment 21716 [details] Echo "OK" if the behaviour is correct, "KO" otherwise InputBuffer does not check "closed" in any read, mark, skip operation, thus bytes can be read even when the application has requested to close the inputstream. This causes programming problems to go unnoticed. See the attached test case.