Skip to content

Revisit CodecException vs ResponseStatusException in DecoderHttpMessageReader [SPR-15516] #20075

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-15516 and commented

DecoderHttpMessageWriter as well as EncoderHttpMessageReader in http.codec use ResponseStatusException which lives in web.server, creating a cyclic package dependency.

We should be throwing a different exception to indicate "bad request" there, e.g. a DecodingException subclass of CodecException, to be eventually translated to HTTP status 400 in AbstractMessageReaderArgumentResolver.


Affects: 5.0 RC1

Issue Links:

Referenced from: commits 4fdd853, 4d962a1, 83e0e16

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