Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1147

Cannot read multipart when filename with encoding info

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.21.Final
    • None
    • None
    • None

      I was using python requests to upload file to undertow,
      however, if the filename is not encoded in ascii, python will add an encoding info to filename.
      captured request snippet:
      ```
      --955c7cd7f78e4a8a9f0df45c35f54d2d
      Content-Disposition: form-data; name="file"; filename*=utf-8''%E4%B8%AD%E6%96%87.mp3

      ID3.......TCON.......(12)...@]..........@sC..`.H
      ```

      when read this multipart file, undertow will throw an IllegalStateException, say:
      UT000018: Form value is a String, use getValue() instead

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              dc1987920 chao deng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: