MockMvc security filters causes FileUploadException: the request was rejected because no multipart boundary was found [SPR-12114] #16730
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
in: test
Issues in the test module
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Andres A opened SPR-12114 and commented
When testing a controller using
MockMvc
, file upload works as expected, but when adding the Spring Security filter chain, the request fails with:Even if the filter is a pass through:
XML:
What I mean by adding the security filter chain is using this:
... instead of just this:
Affects: 3.2.10
Reference URL: http://stackoverflow.com/questions/17462642/spring-rest-the-request-was-rejected-because-no-multipart-boundary-was-found
Referenced from: commits 7cf4a4e, 249c688, 786fd92
Backported to: 4.0.7, 3.2.11
The text was updated successfully, but these errors were encountered: