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 2001/10/18 09:18:20 UTC
DO NOT REPLY [Bug 4258] New: -
Can't upload big-sized file that doesn't have 0x0a code
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=4258>.
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=4258
Can't upload big-sized file that doesn't have 0x0a code
Summary: Can't upload big-sized file that doesn't have 0x0a code
Product: Struts
Version: Nightly Build
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: File Upload
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: takehiko.yokota@toshiba.co.jp
I tried to upload a big file that was filled with 0x00 codes, but I
couldn't finish it because Struts threw OutOfMemoryError. So I read
org/apache/struts/upload/*.java source codes, and I found the cause.
org.apache.struts.upload.MultipartIterator#createLocalFile() method
reads uploaded file by using
org.apache.struts.upload.BufferedMultipartInputStream#readLine() method,
but it reads input stream until 0x0a appears and creates byte array.
Therefore, Struts fails uploading a big file that has no 0x0a.