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

Contract of @RequestPart(required=false) not obeyed [SPR-12860] #17458

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


None yet
2 participants
Copy link

commented Mar 29, 2015

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:

  • #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.