Re-allow handling empty request body [SPR-12778] #17376
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Oliver Drotbohm opened SPR-12778 and commented
In case a request contains an empty body, Spring 4.1's
RequestResponseBodyMethodProcessor
callshandleEmptyBody(…)
and immediately returnsnull
without further consideration ofHandlerMethodArgumentResolver
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:
@RequestBody
(required=true) not obeyed@RequestPart
(required=false) not obeyed0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: