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

           Summary: CGI cannot process large content bodies (4.1.31 and
                    5.0.28)
           Product: Tomcat 4
           Version: 4.1.31
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlets:CGI
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In addition to bug 32429, there are other issues I found with the CGI servlet.  
There was a type-o in sending the content to the process, a problem with 
printing debug output, and a problem processing large content.  The large 
content issue is the big one.

The problem is the existing 4.1.31 code is this:
     int lenRead = stdin.read(content);
when it should be in some sort of read loop to ensure all the data is read.  

I don't know if fix I did to the  toString() and blanksToString() is valid, but 
I was repeatedly getting:
java.lang.ClassCastException
        at dsi.app.tomcat.DCGIServlet$CGIEnvironment.toString
(DCGIServlet.java:1241)
        at dsi.app.tomcat.DCGIServlet.doGet(DCGIServlet.java:596)
        at dsi.app.tomcat.DCGIServlet.doPost(DCGIServlet.java:544)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Attached is the file I made to fix the issues we were having.  It is based on 
the 4.1.31 source code and a diff with tell what changes I made.  The 5.0.28 
source looks similar to the 4.1 source and so will have the problem as well.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to