cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-6724) Should give a exception if there are no multipart boundary in multipart/form-data Content-Type
Date Tue, 28 Mar 2017 17:24:41 GMT

     [ 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)

Mime
View raw message