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:
Referenced from: commits 0e3aa0e
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:
@RequestBodyshould have a required parameter to allow a request body to be optional@RequestBody(required=true) not obeyed@RequestBody(required = false) not respectedReferenced from: commits 0e3aa0e