DefaultHandlerExceptionResolver::doResolveException no longer returns ModelAndView customized via protected method #29971
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
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
The text was updated successfully, but these errors were encountered: