commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Etienne Dethoor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FILEUPLOAD-287) Multipart/mixed parts not handled correctly
Date Tue, 17 Oct 2017 14:30:00 GMT
Etienne Dethoor created FILEUPLOAD-287:
------------------------------------------

             Summary: Multipart/mixed parts not handled correctly
                 Key: FILEUPLOAD-287
                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-287
             Project: Commons FileUpload
          Issue Type: Bug
    Affects Versions: 1.3.3
            Reporter: Etienne Dethoor
            Priority: Critical


If i submit a request with global header {{Content-Type="multipart/mixed;boundary="uuid:5985c43c-16a5-483a-88ff-64602f2a2f3f";charset=UTF-8"}}
data to a servlet : 
{code:xml}

--uuid:5985c43c-16a5-483a-88ff-64602f2a2f3f
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-ID: myFile
My_Content_Here

--uuid:5985c43c-16a5-483a-88ff-64602f2a2f3f
Content-Type: application/xml
Content-Transfer-Encoding: binary
Content-ID: myOtherFileHere
M_Other_Content_Here
{code}

The differents parts are not recognized because of FileUploadBase.getFiedName() method who
want a Content-Disposition header for each part of the request.

The [rfc|https://tools.ietf.org/html/rfc7578#section-4.2] specified that this header is mandatory
for the {{multipart/form-data}} content-type.
For the {{multipart/mixed}}, if i well understand, the rfc doesn't say this header is mandatory
for each parts of the request.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message