You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2017/03/28 17:24:41 UTC

[jira] [Resolved] (CXF-6724) Should give a exception if there are no multipart boundary in multipart/form-data Content-Type

     [ https://issues.apache.org/jira/browse/CXF-6724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-6724.
------------------------------
       Resolution: Won't Fix
    Fix Version/s: Invalid

If there isn't a boundary, we look at the stream to find what "looks like" a boundary at the start and use that if possible.  This is due to many clients not properly adding the boundary header and no possible way of changing all of them.  If we cannot determine a boundary that way, we do throw an exception.

> Should give a exception if there are no multipart boundary in multipart/form-data Content-Type
> ----------------------------------------------------------------------------------------------
>
>                 Key: CXF-6724
>                 URL: https://issues.apache.org/jira/browse/CXF-6724
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.18, 3.1.4
>         Environment: tomcat spring
>            Reporter: ghs
>             Fix For: Invalid
>
>
> POST /web/filetransfer HTTP/1.1
> Host: fs.test.com:8080
> Cache-Control: no-cache
> Postman-Token: 0a9429d1-20b7-2423-220a-663da593734a
> Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
> ----WebKitFormBoundary7MA4YWxkTrZu0gW
> Content-Disposition: form-data; name="upload-file"; filename="0-1451369532015575.jpg"
> Content-Type: image/jpeg
> ----WebKitFormBoundary7MA4YWxkTrZu0gW
> if there are no "boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW", cxf can't give a exception but sometimes it will lost file data.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)