Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.1.0-M3
Description
Failing test cases:
1) V2AddlPortletTests_SPEC2_5_ActionHandling_exception1 - If the portlet throws an PortletException in processAction, all operations on the ActionResponse, including set events, must be ignored.
2) V2AddlPortletTests_SPEC2_5_ActionHandling_exception2 - If the portlet throws a RuntimeException in processAction, all operations on the ActionResponse, including set events, must be ignored
These tests cannot be tested as portlet crashes giving out the respective exception.
If we catch the exception within processAction method and set event on ActionResponse portletResp, then the event gets executed which is wrong.
If we do not catch the exception then portlet container shows exception instead of ignoring operations on ActionResponse.