Skip to content

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

Closed

Description

@spring-projects-issues

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:

Activity

  1. 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