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

[fileupload] Content-Type with quoted boundary doesn't work

    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: other
      Platform: All

    • Bugzilla Id:
      35183

      Description

      I am using a MIME framework that creates headers and bodies
      for multiparts. It creates the Content-Type as e.g. (this is
      a single line in the original header):

      Content-Type: multipart/form-data; boundary="-----
      =_N0U3NTVGRkNCOEQ4MEE3MTBDNzZDOEMyQjU0MkIyMDg="

      Later the parts are separated by

      ------- =_N0U3NTVGRkNCOEQ4MEE3MTBDNzZDOEMyQjU0MkIyMDg=

      The package doesn't recognise any fields in the request.
      If OTOH I remove the quotes from the Content-Type, it works.

      Inspection of the code in CVS seems to indicate that the
      problem is that ParameterParser.parseQuotedToken()
      recognises quotes but doesn't remove them from the value.
      So FileUploadBase.getBoundary() gets the boundary with the
      quotes and compares it to actual data without quotes.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              benjamin.riefenstahl@epost.de Benjamin Riefenstahl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: