Skip to content

FormHttpMessageConverter to preserve parameters from the input MediaType  #25839

@alan-bond

Description

@alan-bond

The contentType could have prams inside of it when it comes into this method.
This line of code will not look at those prams at those prams will will just over write them. Instead of just making a new list here, you should take the content type that came in or was made new in the beginning of this method and start a new list from the prams of the contentType.
It could look something like:
Map<String, String> parameters = new LinkedHashMap(contentType.getParameters());
instead of:
Map<String, String> parameters = new LinkedHashMap(2);

This will allow the setting of the prams in the rest controller by adding them to the contentType at that level and this will no longer over write them when working with multipart content types.

Thank you for your time

Alan Bond

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