-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
Andy Wilkinson opened SPR-13755 and commented
This was originally reported as a Spring Boot issue, but I believe the problem lies in Spring MVC. I've pushed a sample that reproduces the issue to the spring-boot-issues repo: https://github.com/spring-projects/spring-boot-issues/tree/master/gh-4660.
For the first request, the argument type is correctly resolved as java.util.Optional
. The second time it's resolved as a MultipartFile
. A possible side-effect of the first resolution setting the HandlerMethodParameter's parameter type so the second resolution is using different inputs?
Affects: 4.1.8, 4.2.3
Reference URL: spring-projects/spring-boot#4660
Issue Links:
- Support for java.util.Optional as a @RequestPart [SPR-12644] #17245 Support for java.util.Optional as a
@RequestPart
Backported to: 4.1.9
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug