Skip to content

DefaultHandlerExceptionResolver::doResolveException no longer returns ModelAndView customized via protected method #29971

Closed
@ryber

Description

@ryber

Impacted Version: spring-webmvc-6.0.4

Previously

DefaultHandlerExceptionResolver::doResolveException(HttpServletRequest request, HttpServletResponse response, @Nullable Object handler, Exception ex)

would return the ModelAndView when it was resolved from one of the specific methods (like handleHttpRequestMethodNotSupported)

Starting with 6, this method now sets a local variable of the ModelAndView and then does NOT return it. It ALWAYS returns null. in these cases.

see https://github.com/spring-projects/spring-framework/blob/main/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java#L167-L248

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions