Skip to content

HttpMessageNotReadableException when @RequestBody(required=false) [SPR-9942] #14575

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions