cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11401] New: - upload bug
Date Fri, 02 Aug 2002 03:36:26 GMT
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: cocoon-dev@xml.apache.org
        ReportedBy: dema@alb.kz


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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message