You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Massimo Heitor (JIRA)" <ji...@apache.org> on 2007/10/03 03:08:37 UTC

[jira] Commented: (WW-2227) Mishandles exception thrown from result

    [ https://issues.apache.org/struts/browse/WW-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42321 ] 

Massimo Heitor commented on WW-2227:
------------------------------------

I suggest commenting out these three lines from DefaultActionInvocation.java, method createResult, line 174:

    	if (result != null) {
   		return result;
    	}

I did so, and this produced the desired behavior. This also did not break any additional automated test cases in xwork 2.0.4.

> Mishandles exception thrown from result
> ---------------------------------------
>
>                 Key: WW-2227
>                 URL: https://issues.apache.org/struts/browse/WW-2227
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch
>    Affects Versions: 2.0.9
>         Environment: Should happen under all environments
>            Reporter: Massimo Heitor
>
> When an exception is thrown from a result, the exact result is executed a second time and the original exception is discarded.
> Desired behavior would be doing normal exception processing and executing the exception handler.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.