Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8B3B7200D20 for ; Tue, 17 Oct 2017 17:48:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8953D1609DE; Tue, 17 Oct 2017 15:48:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CFE6D1609D7 for ; Tue, 17 Oct 2017 17:48:05 +0200 (CEST) Received: (qmail 22455 invoked by uid 500); 17 Oct 2017 15:48:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 22443 invoked by uid 99); 17 Oct 2017 15:48:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2017 15:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 22708CE493 for ; Tue, 17 Oct 2017 15:48:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id FmPvc_p8dRjL for ; Tue, 17 Oct 2017 15:48:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6B1315FB4E for ; Tue, 17 Oct 2017 15:48:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 68A83E0373 for ; Tue, 17 Oct 2017 15:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 174F221EE3 for ; Tue, 17 Oct 2017 15:48:00 +0000 (UTC) Date: Tue, 17 Oct 2017 15:48:00 +0000 (UTC) From: "Etienne Dethoor (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FILEUPLOAD-287) Multipart/mixed parts not handled correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 Oct 2017 15:48:06 -0000 [ https://issues.apache.org/jira/browse/FILEUPLOAD-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Etienne Dethoor updated FILEUPLOAD-287: --------------------------------------- Description: 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 with : {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.getFieldName()}} 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. was: 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 with : {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. > 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 with : > {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.getFieldName()}} 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)