Skip to content

Error handling override in DefaultResponseErrorHandler ignored after upgrade to 6.2.0 #33980

Closed as not planned
@blopatka

Description

@blopatka

Change introduced in spring 6.2.0 changes the behavior of DefaultResponseErrorHandler.

Until now

public void handleError(URI url, HttpMethod method, ClientHttpResponse response) throws IOException {
method didn't exist and the default implementation from interface was calling handleError(ClientHttpResponse response) method, right now the behavior is broken and the said method is not being called.

In classess derived from the DefaultResponseErrorHandler when overriding only handleError(ClientHttpResponse response), the error handling stops working properly, as now the call to the method is completely ommited.

This happened without any notice in release notes, my custom error handler stopped working, errors were only default processed.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions