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=9832>.
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=9832

Tomcat 4 IIS redirector cannot cope with POST in SSL

           Summary: Tomcat 4 IIS redirector cannot cope with POST in SSL
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Connector:JK/AJP (deprecated)
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an IIS 5 web site that is SSL enabled. I am using the isapi-
redirector.dll to connect to tomcat 4.0.3 and all works fine except if there is 
a post buffer sent. When you try to read the post buffer the web server gets 
hung and eventually sends back an out of memory exception. 
An easy way to verify this bug would be to use the snoop.jsp page and add the 
following code to the page:


        String PostBuf = null;
        if (request.getContentLength() > 0)
        {
        
        InputStream in = request.getInputStream();
    if (in == null)
    {
       System.out.println("InputStream was null");
    }
    else
    {
        int b;
        byte inBuff[] = new byte[4096];
        ByteArrayOutputStream ba = new ByteArrayOutputStream();
        while ((b = in.read(inBuff)) != -1)
        {
            ba.write(inBuff, 0, b);
        }
        PostBuf = new String(ba.toByteArray());
    }
    }

When send a post to this page -- works fine if on port 8080. But through the 
web server using SSL, it hangs

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

Reply via email to