Closed
Description
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:
- Contract of @RequestBody(required=true) not obeyed [SPR-11828] #16447 Contract of
@RequestBody
(required=true) not obeyed - Re-allow handling empty request body [SPR-12778] #17376 Re-allow handling empty request body