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 @RequestBody(required=true) not obeyed [SPR-11828] #16447

Closed
spring-projects-issues opened this issue May 29, 2014 · 0 comments
Closed
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 29, 2014

Andrei Badea opened SPR-11828 and commented

When I send a HTTP request with an empty body, the respective controller method is invoked with a null argument for the parameter annotated with @RequestBody. Instead, a HttpMessageNotReadableException should be thrown.

This may be a regression introduced by the fix of #14575. Note that fix removed the statement that threw HttpMessageNotReadableException.


Affects: 3.2.8

Issue Links:

Referenced from: commits de1a41a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants