Caldarale, Charles R wrote:
From: Patrick Mc Erlean [mailto:[EMAIL PROTECTED] Subject: Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

Apparently the reason Apache rejects this request is that there is a Content Length check for -1 in the FileUploadBase class.

Not true in this case - FileUploadBase is not involved, as I keep trying
to explain.  IIRC, there is such a check in Tomcat's standard HTTP
handler, since the standard handler needs to know how big a buffer to
get for the entire request.  You have apparently made the invalid
assumption that the -1 check can only exist in one place, when in fact
it is rather pervasive.

The proper fix is for your webapp to actually use commons-fileupload,
which it is not currently doing.
Chuck, I don't understand how using commons-fileupload in my Servlet is going to make any difference since the request never makes it as far as my Servlet? Can you explain how you think this would work? If the HTTP request doesn't make it as far as my Servlet then how can I affect what happens?
It's pretty clear to me that there is a problem with Chunked Transfer somewhere in Apache since it doesn't work. Chunked Transfer sets the Content Length to -1 and Apache doesn't like that.

BTW, you shouldn't use the unqualified term "Apache", unless you're
referring to the open-source software development organization, not any
particular product of that organization.  For the subject of this
discussion, just refer to Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to