- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Rossen Stoyanchev opened SPR-12860 and commented
Currently @RequestPart(required=false) works as expected only if the part is missing altogether. It should also work if the part is present but the content is empty. Instead currently, depending on the specific HttpMessageConverter used, it may result in an HttpMessageNotReadableException instead of null.
Affects: 4.1.6
Issue Links:
- Contract of @RequestBody(required=true) not obeyed [SPR-11828] #16447 Contract of @RequestBody(required=true) not obeyed
- Re-allow handling empty request body [SPR-12778] #17376 Re-allow handling empty request body
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug