You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HttpMessageNotReadableException when @RequestBody(required=false) [SPR-9942] #14575
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.
Activity
spring-projects-issues commentedon Oct 31, 2012
Rossen Stoyanchev commented
I can confirm the issue. Issue reproduction project:
https://github.com/SpringSource/spring-framework-issues/tree/master/SPR-9329
spring-projects-issues commentedon Oct 31, 2012
Rossen Stoyanchev commented
Commit 0e3aa0eec4b604957d5206257396616a93d1c7c3 should fix this issue.
spring-projects-issues commentedon Nov 8, 2012
David Roberts commented
Tested the issue today on latest 3.2.0.BUILD-SNAPSHOT and it worked for me. Thank you.