DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21297>.
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=21297

isapi_redirector2.dll cannot parse wrapped HTTP headers

           Summary: isapi_redirector2.dll cannot parse wrapped HTTP headers
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Connector:Coyote JK 2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If an HTTP request containing a header that is continued on more than one line
using leading whitespace is received by isapi_redirector2.dll via IIS, the
headers are parsed incorrectly. This has also been tested using HTTP/1.1 and on
Windows XP.

Sample JSP:

<html>
<body>
<pre>
<%
for(java.util.Enumeration names = request.getHeaderNames();
names.hasMoreElements();)
{
        String name = (String)names.nextElement();
        out.write("[" + name + "] = [" + request.getHeader(name) + "]");
        out.write("\n");
}
%>
</pre>
</body>
</html>

Sample HHTP request:

GET /examples/bug.jsp HTTP/1.0
Host: localhost
SOAPAction: "ebXML"
Content-Type: multipart/related; type="text/xml"; start="<24480816.1056342917752>"; 
        boundary=28258744.1056342917762
Message-ID: 3736219.105634291777
Connection: close


Sample correct output when sent direct to Tomcat:

[host] = [localhost]
[soapaction] = ["ebXML"]
[content-type] = [multipart/related; type="text/xml";
start="<24480816.1056342917752>"; boundary=28258744.1056342917762]
[message-id] = [3736219.105634291777]
[connection] = [close]

Sample incorrect output when sent to IIS/isapi_redirector2.dll:

[connection] = [close]
[host] = [localhost]
[content-type] = [multipart/related; type="text/xml";
start="<24480816.1056342917752>"; ]
[soapaction] = ["ebXML"]
[       boundary=28258744.1056342917762
message-id] = [3736219.105634291777]
[content-length] = [0]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to