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
Oliver Drotbohm opened SPR-12778 and commented
In case a request contains an empty body, Spring 4.1's
RequestResponseBodyMethodProcessorcallshandleEmptyBody(…)and immediately returnsnullwithout further consideration ofHandlerMethodArgumentResolverinstances that might be able to deal with an empty request body.This is a regression in cases where the
HandlerMethodArgumentResolverwas 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