Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HttpEntity controller method arguments should allow null body [SPR-12861] #17459

spring-issuemaster opened this issue Mar 29, 2015 · 0 comments


None yet
2 participants
Copy link

commented Mar 29, 2015

Rossen Stoyanchev opened SPR-12861 and commented

An HttpEntity controller method argument should be able to handle the case when the request body is empty by setting the body to null. Instead depending on the HttpMessageConverter used, currently it may result in an HttpMessageNotReadableException that is translated to 400 by default.

Affects: 4.1.6

Issue Links:

  • #16447 Contract of @RequestBody(required=true) not obeyed
  • #17376 Re-allow handling empty request body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.