Skip to content

StandardMultipartHttpServletRequest cannot decode multipart Content-Disposition header encoded by FormHttpMessageConverter [SPR-15205] #19769

Closed
@spring-projects-issues

Description

@spring-projects-issues

Miroslav Holubec opened SPR-15205 and commented

There is wrong behavior when encoding/decoding Content-Disposition header.
When I do setMultipartCharset() on AllEncompassingFormHttpMessageConverter, it emits header like this:

Content-Disposition: form-data; name="uploadedFile"; filename="=?UTF-8?Q?Declara=C3=A7=C3=A3o.pdf?="

StandardMultipartHttpServletRequest cannot decode such a name, as it expects that "filename" is followed by asterisk.

I'm a bit lost in RFCs, as not sure if RFC 6266 should be applied here (means asterisk required) or not.


Affects: 4.3.6

Issue Links:

Referenced from: commits 390bb87, bb684ce, 75117f4, f89511e, 3009e29

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions