Skip to content

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

Closed

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

Activity

  1. spring-projects-issues commented on Oct 31, 2012

    @spring-projects-issues
    CollaboratorAuthor
  2. spring-projects-issues commented on Oct 31, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Rossen Stoyanchev commented

    Commit 0e3aa0eec4b604957d5206257396616a93d1c7c3 should fix this issue.

  3. spring-projects-issues commented on Nov 8, 2012

    @spring-projects-issues
    CollaboratorAuthor

    David Roberts commented

    Tested the issue today on latest 3.2.0.BUILD-SNAPSHOT and it worked for me. Thank you.

  4. added
    type: bug
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions