Issue Details (XML | Word | Printable)

Key: FILEUPLOAD-16
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Justin Sampson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons FileUpload

[fileupload][PATCH] Workaround for IE5 Mac type=image bug

Created: 13/Jul/04 02:05 AM   Updated: 09/Mar/07 08:31 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File fileupload-ie5mac.patch 2004-07-13 02:07 AM Justin Sampson 4 kB
Environment:
Operating System: All
Platform: All

Bugzilla Id: 30061


 Description  « Hide
Gentlehackers,

Much to our dismay, and we're sure shortly to yours, we have
found a bug in IE 5 for Mac where it is (shockingly) not
conformant to the multipart/form-data specification.
Our first reaction was whether we could just forget about IE5
for the Mac, but we are told it is the best browser for Mac
OS 9, which is still dear to the hearts of our target audience.
Our second reaction .... well let's suffice it to say we cooked
up several plans and it seemed like working around the bug in the
File Upload code could actually be done simply without harming
anything else.

The bug is that the carriage return is missing on any boundary
line immediately preceding an input with type=image.
(type=submit does not have the bug.)

Because the boundary delimiter, not including the trailing
CRLF, must not appear within any file (RFC 2046, section
5.1.1), we know the missing CR is due to a buggy browser
rather than a file containing something similar to a
boundary.

This case had previously always been throwing an exception, so
our patch does not interfere with any previously-working
situation.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 09:43 AM
Field Original Value New Value
issue.field.bugzillaimportkey 30061 12341567
Henri Yandell made changes - 16/May/06 11:35 AM
Key COM-1415 FILEUPLOAD-16
Component/s FileUpload [ 12311116 ]
Affects Version/s unspecified [ 12311647 ]
Project Commons [ 12310458 ] Commons FileUpload [ 12310476 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Henri Yandell made changes - 09/Mar/07 08:31 PM
Status Resolved [ 5 ] Closed [ 6 ]