Skip to content

DispatcherPortlet shouldn't call exposeActionException during event processing [SPR-9287] #13925

@spring-projects-issues

Description

@spring-projects-issues

Eric Dalquist opened SPR-9287 and commented

DispatcherPortlet.doEventService calls exposeActionException if an exception is thrown during event processing. The intent is to show the exception the next time the portlet renders.

The problem is a portlet that is handling an event may never render again. This approach of swallowing the exception results in the exception being hidden from the portlet container and no mention of the exception appearing anywhere unless DEBUG logging is enabled in the afflicted portlet.

I believe that exposeActionException should be removed for event requests and made optional for action requests to allow portlets to rely on the container provided exception handling.


Affects: 3.0.7, 3.1.1

Sub-tasks:

Referenced from: commits 5965710, 79b86a7

1 votes, 3 watchers

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