Closed
Description
David Roberts opened SPR-9942 and commented
I've tested #13877 on 3.2M2 and set @RequestBody
(required=false), and it is still throwing org.springframework.http.converter.HttpMessageNotReadableException when I send it a null body from a test client. I would expect my body object parameter to be sent through as null, as per the comments on the @RequestBody
.required() method.
Any suggestions?
Affects: 3.2 M2
Issue Links:
- @RequestBody should have a required parameter to allow a request body to be optional [SPR-9239] #13877
@RequestBody
should have a required parameter to allow a request body to be optional - Contract of @RequestBody(required=true) not obeyed [SPR-11828] #16447 Contract of
@RequestBody
(required=true) not obeyed - Regression: @RequestBody(required = false) not respected [SPR-13417] #17996 Regression:
@RequestBody
(required = false) not respected
Referenced from: commits 0e3aa0e