You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/13 03:46:23 UTC
DO NOT REPLY [Bug 26080] New: -
multipart-post without content type causes first line of file to not have a newline
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=26080>.
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=26080
multipart-post without content type causes first line of file to not have a newline
Summary: multipart-post without content type causes first line of
file to not have a newline
Product: Struts
Version: 1.1 Final
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: File Upload
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: dave_b93@hotmail.com
If you send a multipart-post without a content type, the first line of the file
being uploaded loses its newline. This seems to be the result of
MultipartBoundaryInputStream around line 421. When no content-type is present,
the first line of the file is read, after which the carrige return / line feed
booleans are reset.
I'm not worried about a fix as this file is deprecated. As a workaround I used
the Commons FileUpload based multipart handler instead. This bug is being
logged just so that if anyone else has this problem they can find a workaround
a little bit easier.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org