Skip to content

Consistent throwing of HttpMessageNotReadableException in HttpMessageConverter implementations [SPR-16995] #21533

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-16995 and commented

Some HttpMessageConverter are inconsistent in their throwing of IOException versus HttpMessageNotReadableException, unnecessarily wrapping the former or throwing a mix of the latter and the general HttpMessageConversionException. Most importantly, ProtobufHttpMessageConverter needs a thorough revision here, as well as the JAXB2 based converters.

Let's streamline this for 5.1 and backport it to 5.0.8 as far as feasible.


Affects: 5.0.7

Issue Links:

Referenced from: commits ac1e287, d08b72a

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions