Skip to content

Exceptions thrown from an ActionRequest are not handled via @ExceptionHandler [SPR-6959] #11624

@spring-projects-issues

Description

@spring-projects-issues

Peter Oxenham opened SPR-6959 and commented

Exceptions thrown from a controller due to an ActionRequest are not handled via the AnnotationMethodHandlerExceptionResolver.

This seems to be because the 'handler' argument is never passed to the resolveException method.

I changed org.springframework.web.portlet.DispatcherPortlet.doRenderService(RenderRequest, RenderResponse) to call getHandler()
before the processing of the ACTION_EXCEPTION_RENDER_PARAMETER and this seemed to fix the problem (though I'm not sure of any other ramifications of this change).


Affects: 3.0.1

Attachments:

Referenced from: commits b67b5ec, 65e8844

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions