Skip to content

Allow configuring the message converter in HttpPutFormContentFilter [SPR-14503] #19072

Closed
@spring-projects-issues

Description

@spring-projects-issues

Serhii Hromovyi opened SPR-14503 and commented

Hi,

we faced a problem using FormHttpMessageConverter.MultipartHttpOutputMessage while processing multipart request.
Our case is very similar to #16724, but with the only difference - we operate with InputStreamResourse (getFilename always returns null) and filename of multipart is defined in Content-Disposition header. And when MultipartHttpOutputMessage invokes writeHeaders() method - header value is retrieved in ASCII encoding:
byte[] headerValue = getAsciiBytes(headerValueString);
In our case we have there filename, which contains cyrillic symbols, that are transformed to "?" afterwards.
Is it ok, that ASCII encoding is using there?
If so - is it possible to allow us at least to override this encoding? Cause now there is no possibility to do it.


Affects: 4.2.6

Issue Links:

1 votes, 5 watchers

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