Bug 794237 (JBEPP-1293) - Exception is not handled in SeamPhaseListenerWrapper.afterPhase() and just swallowed
Summary: Exception is not handled in SeamPhaseListenerWrapper.afterPhase() and just sw...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1293
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.1.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0.ER06
Assignee: Ken Finnigan
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-17 11:08 UTC by Toshiya Kobayashi
Modified: 2011-11-28 02:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Portlet Bridge 2.1.2 tag / 2.x-EPP5 branch
Last Closed: 2011-11-02 12:16:44 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1293 0 None None None Never

Description Toshiya Kobayashi 2011-10-17 11:08:29 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000008RtL9&sfdc.override=1
project_key: JBEPP

Platform JIRA for [PBR-295] Exception is not handled in SeamPhaseListenerWrapper.afterPhase() and just swallowed

Comment 1 Toshiya Kobayashi 2011-10-17 11:09:09 UTC
Link: Added: This issue incorporates PBR-295


Comment 2 Toshiya Kobayashi 2011-11-02 07:29:17 UTC
Link: Added: This issue is incorporated by JBEPP-1330


Comment 3 Jared MORGAN 2011-11-22 23:53:30 UTC
Could I please get some draft content for the Release Notes here. This must be included in the Release Notes, because it is a helpdesk issue.

Comment 4 Jared MORGAN 2011-11-22 23:53:30 UTC
Release Notes Docs Status: Added: Needs More Info
Release Notes Text: Added: CAUSE:

CONSEQUENCE:

FIX:

RESULT:
Primary SME: Added: theute
NEEDINFO: Removed: Nobody Added: Subject Matter Expert


Comment 5 Jared MORGAN 2011-11-27 23:09:04 UTC
NEEDINFO Due Date: Added: 30/Nov/11


Comment 6 Toshiya Kobayashi 2011-11-28 01:00:33 UTC
Hi Jared,
Let me know if you want more info.

===========
CAUSE:

org.jboss.portletbridge.seam.SeamPhaseListenerWrapper.afterPhase() doesn't handle exceptions.

CONSEQUENCE:

Exceptions during afterPhase() are swallowed. (e.g. StaleObjectStateException in Hibernate commit) Seam exception handler is not notified of it so the application moves to a next page instead of an error page.

FIX:

Now org.jboss.portletbridge.seam.SeamPhaseListenerWrapper.afterPhase() catches exceptions and passes them to Seam exception handler like org.jboss.seam.jsf.SeamPhaseListener.

RESULT:

Exceptions during afterPhase() are handled. Seam exception handler is notified of it so the application moves to an error page.

Comment 8 Jared MORGAN 2011-11-28 02:11:09 UTC
Release Notes Docs Status: Removed: Needs More Info Added: Documented as Resolved Issue
Release Notes Text: Removed: CAUSE:

CONSEQUENCE:

FIX:

RESULT: Added: org.jboss.portletbridge.seam.SeamPhaseListenerWrapper.afterPhase() did not correctly handle exceptions. Exceptions that typically occurred during during afterPhase() were truncated (for example StaleObjectStateException in Hibernate commit). The Seam exception handler was not notified of the truncated exceptions therefore the application moves to a next page instead of an error page. The fix ensures org.jboss.portletbridge.seam.SeamPhaseListenerWrapper.afterPhase() catches exceptions and passes them to Seam exception handler (for example, org.jboss.seam.jsf.SeamPhaseListener). Because exceptions are handled correctly, the Seam exception handler displays and error page given the appropriate conditions.
NEEDINFO Due Date: Removed: 30/Nov/11 
NEEDINFO: Removed: Subject Matter Expert Added: Nobody



Note You need to log in before you can comment on or make changes to this bug.