Paul Shannon wrote:
>
> Of course, the bug may just be in my own head. But I have
> pounded on this for a few hours now, and (at the very least)
> I can now reproduce the problem easily: it takes but one
> line added to Jason's example program, UploadTest.java.
> [...]
> You can reproduce this (Jason?) by adding a single line to
> UploadRequest.java;
>
>  -->  String opt = req.getParameter ("opt");
>       MultipartRequest multi =
>          new MultipartRequest(req, ".", 5 * 1024 * 1024);     // line 26
>
> The ensuing exception trace:
>
> java.io.IOException: Corrupt form data: premature ending
> [...]
> I am running Apache 1.34, jserv 10b3, jdk 1.1.7, all on Solaris 2.6,
> with the latetest com.oreilly.servlet.MultipartRequest from cos.jar,
> recently downloaded, and dated January 15th 1999.

This sounds like a bug in JServ more than a bug in the file upload servlet.
It seems like JServ tries to read POST parameters from the input stream
even if the Content Type is not application/x-www-form-urlencoded, thereby
corrupting the stream. I suggest you report this to the Apache team.

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to