You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/12/06 14:17:02 UTC
BugRat Report #536 has been filed.
Bug report #536 has just been filed.
You can view the report at the following URL:
<http://znutar.cortexity.com/BugRatViewer/ShowReport/536>
REPORT #536 Details.
Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment:
Release: 3.2
JVM Release: 1.3
Operating System: WinNT
OS Release: 4.0
Platform: WinNT
Synopsis:
Ajp13ConnectorRequest.doRead fails on HTTP POST
Description:
When using HTTP POST with multiple file (RFC1867), that
are passed from Apache (1.3.14) to mod_jk and to a servlet,
the target servlet hangs outputting some Y characters.
The output came from:
Original code of
org.apache.tomcat.service.connector.Ajp13ConnectorRequest:
public int doRead(byte[] b, int off, int len) throws IOException
{
// XXXXXX Stupid, but the whole thing must be rewriten ( see super()! )
for(int i = off ; i < (len + off) ; i++) {
int a = doRead();
if(-1 == a) {
System.out.println("Y");
return i-off;
}
b[i] = (byte)a;
}
return len;
}
The upload works with ajp12, but unfortunately
we ajp13 to access the SSL certificate. Hint:
the test uses HTTP, not HTTPS!