You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Mohd Ahmed Khan (JIRA)" <ji...@apache.org> on 2016/06/12 11:24:21 UTC

[jira] [Resolved] (PLUTO-643) PortletException and RuntimeException in processAction are not handled by pluto

     [ https://issues.apache.org/jira/browse/PLUTO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mohd Ahmed Khan resolved PLUTO-643.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.4

> PortletException and RuntimeException in processAction are not handled by pluto
> -------------------------------------------------------------------------------
>
>                 Key: PLUTO-643
>                 URL: https://issues.apache.org/jira/browse/PLUTO-643
>             Project: Pluto
>          Issue Type: Bug
>          Components: portlet container, portlets-testsuite
>    Affects Versions: 2.1.0-M3
>            Reporter: Mohd Ahmed Khan
>            Priority: Minor
>              Labels: test
>             Fix For: 2.0.4
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)