Skip to content

Multipart Content-Type charset is ignored in CommonsFileUploadSupport. [SPR-6247] #10915

@spring-projects-issues

Description

@spring-projects-issues

John Roche opened SPR-6247 and commented

value = fileItem.getString in parseFileItems in CommonsFileUploadSupport does not pass the correct encoding

value = fileItem.getString(encoding);
and
value = fileItem.getString();

This uses the encoding of the request (or the default) and does not read the charset from the Content-Type line in the multipart part.

This means you cannot send a multipart POST with different encodings for different parts/parameters.

Patch attached.


Affects: 2.0.9, 2.5.6, 3.0 M1, 3.0 M2, 3.0 M3, 3.0 M4, 3.0 RC1

Attachments:

Referenced from: commits d0893c4

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions