Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-18

contentType comparisons should be case-insensitive

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Bugzilla Id:
      31496

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ivo@benetech.org Ivo Pletikosic

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment