Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 88350 invoked from network); 21 Jan 2006 20:35:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jan 2006 20:35:38 -0000 Received: (qmail 43433 invoked by uid 500); 21 Jan 2006 20:35:36 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 42394 invoked by uid 500); 21 Jan 2006 20:35:33 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 42378 invoked by uid 500); 21 Jan 2006 20:35:33 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 42374 invoked by uid 99); 21 Jan 2006 20:35:32 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 12:35:31 -0800 Received: by ajax.apache.org (Postfix, from userid 99) id 6E224E0; Sat, 21 Jan 2006 21:35:09 +0100 (CET) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 38346] New: - InputBuffer breaks request.readLine() Message-ID: X-Bugzilla-Reason: AssignedTo Date: Sat, 21 Jan 2006 21:35:09 +0100 (CET) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=38346 Summary: InputBuffer breaks request.readLine() Product: Tomcat 5 Version: 5.5.14 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: rainer.jung@kippdata.de There are two bugs in org.apache.catalina.connector.InputBuffer: 1) If you send a POST with 8K in the body then the optimizedWrite flag in CharChunk prevents the input data from being read into the CharChunk. This only happens at and after the second request on an input processor, because the optimizedWrite flag ist being set to true when recycling the InputBuffer after the first request. 2) After fixing that, you can more easily see another bug: realReadChars always reads the full ByteChunk buffer size and then tries to convert it into the CharChunk. There is a corner case, where CharChunk has a limit just a little too small, to be able to do that. This is not about making CharChunk much bigger. I can give more precise details, but the patch might be self-explaining (it is very short). I attach - a patch - a JSP and a perl script to easily reproduce the problem. Problem 1) can be reprodiced by setting CHUNK in the script to 8192, problem 2 (after fixing 1) by setting it slightly bigger than 8192, e.g. 8300. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org