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/11/30 17:42:43 UTC

DO NOT REPLY [Bug 21244] - FormFile implementations should be serializable

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=21244>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=21244





------- Additional Comments From thoralf.rickert@cadooz.de  2004-11-30 17:42 -------
This bug isn't resolved but could be resolved very easy. 

The internal used DefaultFileItem class to hold the upload data contains a 
member named dfos of type DeferredFileOutputStream. This member must be 
declared as transient because Streams cannot be serialized. I think, that this 
would fix any problem with serialized upload forms.

I cannot access the cvs repository but I made a local diff -u to the file 
based on revision 1.21. Here is the diff I made.

@@ -156,7 +156,7 @@
     /**
      * Output stream for this item.
      */
-    private DeferredFileOutputStream dfos;
+    private transient DeferredFileOutputStream dfos;


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org