Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 6464 invoked from network); 11 Dec 2002 16:37:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Dec 2002 16:37:28 -0000 Received: (qmail 22955 invoked by uid 97); 11 Dec 2002 16:38:24 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 22928 invoked by uid 97); 11 Dec 2002 16:38:24 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 22913 invoked by uid 50); 11 Dec 2002 16:38:23 -0000 Date: 11 Dec 2002 16:38:23 -0000 Message-ID: <20021211163823.22912.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 15278] New: - [PATCH] mod_jk2 for IIS, Bugfix corrupted data ] X-Spam-Rating: daedalus.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://nagoya.apache.org/bugzilla/show_bug.cgi?id=15278 [PATCH] mod_jk2 for IIS, Bugfix corrupted data ] Summary: [PATCH] mod_jk2 for IIS, Bugfix corrupted data ] Product: Tomcat 4 Version: 4.1.12 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Connector:Other AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: joakim.strom@excosoft.se Bugfix that solves this problem: Data uploaded from a client occasionally gets corrupted by the isapi_redirector2 filter, if the length of the data exceeds approximately 56k bytes. A word of warning is appropriate here: The fix is in the common part of jk2 but I have only tested on IIS, where it does the job. The fix is from v. 1.27 of jk/native2/common/jk_requtil.c --- jk/native2/common/jk_requtil.c.orig 2002-12-11 16:52:47.000000000 +0100 +++ jk/native2/common/jk_requtil.c 2002-12-11 17:04:30.000000000 +0100 @@ -434,7 +434,8 @@ unsigned len) { unsigned rdlen = 0; - unsigned padded_len = len; + unsigned padded_len = len; + long content_read = s->content_read; /* save input value */ if (s->is_chunked && s->no_more_chunks) { return 0; @@ -453,8 +454,9 @@ unsigned this_time = 0; if(s->read(env, s, buf + rdlen, len - rdlen, &this_time)) { return -1; - } - + } + s->content_read += this_time; /* make sure content_read always gets incremented */ + if(0 == this_time) { if (s->is_chunked) { s->no_more_chunks = 1; /* read no more */ @@ -462,7 +464,8 @@ break; } rdlen += this_time; - } + } + s->content_read = content_read; /* reset */ return (int)rdlen; } -- To unsubscribe, e-mail: For additional commands, e-mail: