Skip to content

Re-allow handling empty request body [SPR-12778] #17376

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-12778 and commented

In case a request contains an empty body, Spring 4.1's RequestResponseBodyMethodProcessor calls handleEmptyBody(…) and immediately returns null without further consideration of HandlerMethodArgumentResolver instances that might be able to deal with an empty request body.

This is a regression in cases where the HandlerMethodArgumentResolver was explicitly designed to return a default value, which worked fine with 4.0.x.


Affects: 4.1.5

Issue Links:

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions