Skip to content

Add handling for AsyncRequestNotUsableException to ResponseEntityExceptionHandler #33225

@rstoyanchev

Description

@rstoyanchev

The exception implies the response is no longer usable, and it is handled in DefaultHandlerExceptionResolver by not taking any action. However, as the resolver is ordered after ExceptionHandlerExceptionResolver (i.e. handling via @ExceptionHandler controller methods), it may not get a chance. We should also add handling in ResponseEntityExceptionHandler, which has a better chance of taking effect.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions