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=11401>. 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=11401 upload bug Summary: upload bug Product: Cocoon 2 Version: 2.0.3 Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] There is a bug in org.apache.cocoon.components.request.multipart.MultipartRequestWrapper that causes the following result when trying to upload file --- core.log ------------ PARAM: 'bigimage' VALUES: '[org.apache.cocoon.components.request.multipart.FilePartFile@631573]' ------------------------- I think that the following patch can fix it but I'm not sure because I didn't reviewed all the code. --- MultipartRequestWrapper.java_old Fri Aug 2 09:59:34 2002 +++ MultipartRequestWrapper.java Fri Aug 2 09:57:14 2002 @@ -184,7 +184,11 @@ if (value instanceof Vector) { value = ((Vector) value).elementAt(0); } - result = value.toString(); + if(value instanceof FilePartFile){ + result = (((FilePartFile)value).getFile()).getAbsolutePath(); + } else { + result = value.toString(); + } } return result; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]