> From: Patrick Mc Erlean [mailto:patrick.mcerlean@(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.
> 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@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)