Issue Details (XML | Word | Printable)

Key: FILEUPLOAD-18
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Ivo Pletikosic
Votes: 0
Watchers: 0
Operations

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

contentType comparisons should be case-insensitive

Created: 01/Oct/04 02:00 AM   Updated: 09/Mar/07 08:31 PM
Return to search
Component/s: None
Affects Version/s: 1.0 Final
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: Windows XP
Platform: PC

Bugzilla Id: 31496


 Description  « Hide
In functions like FileUploadBase.isMultipartContent() the content type
comparison should be case insensitive, ex.

org.apache.commons.fileupload.FileUploadBase: line 121 -

if (contentType.toLowerCase().startsWith(MULTIPART))

to be able to handle html forms that uppercase some attribute/value pairs:

<form method="POST" action="http://127.0.0.1" enctype="MULTIPART/FORM_DATA">

I cant find an RFC that specifies case sensitivity for enctype or or otherwise
but I've come accross web designers/tools that use uppercase.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Cooper added a comment - 11/Oct/04 05:03 AM
Fixed in the 10/11/2004 nightly build.

RFC 2045 states that the values are case-insensitive.