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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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.
