Skip to content

Configure StandardServletMultipartResolver to only support multipart/form-data #26826

Closed
@aaronjwhiteside

Description

@aaronjwhiteside

It seems that StandardServletMultipartResolver wraps multipart/mixed requests with StandardMultipartHttpServletRequest which fails in Jetty due to strict conformance to the spec.

I.e. HttpServletRequest.getParts() should only be called when the content type is multipart/from-data and not just any content type that starts with multipart/

Spring Framework Version: 5.2.9

Please see jetty/jetty.project#6196 for details. (exception and original request)

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