commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38163] - [fileupload] Error during process a multipart/form-data page
Date Fri, 06 Jan 2006 18:10:33 GMT
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=38163>.
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=38163


martinc@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|File Upload                 |Action
            Product|Commons                     |Struts
            Version|unspecified                 |Unknown




------- Additional Comments From martinc@apache.org  2006-01-06 19:10 -------
The Blackberry isn't even trying to upload the file. It's sending the name of
the file as if it were a regular text field. This is extremely lame. It's also
not something I'm particularly interested in fixing.

Note that the problem is not in Commons FileUpload at all. It did its job. The
exception is happening when Struts calls Commons BeanUtils to populate your form
bean, and there is a mismatch when BeanUtils tries to convert the string that
the Blackberry sent into a FileItem, which of course isn't possible.

It is conceivable that a special-purpose BeanUtils Converter could be written
that takes a string and returns a FileItem (or null). That would avoid the
exception. The problem is that now there is no way that your application could
detect that someone had used a lame-o Blackberry that didn't send the file it
was supposed to send. You'd only know that no file was sent, and not whether or
not that was the user's intent.

I'm leaving this open and reassigning to Struts in case someone else wants to do
something about this, but I expect that it will probably end up being closed as
invalid.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message