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:06:36 UTC
[jira] Created: (WW-2227) Mishandles exception thrown from result
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.
[jira] Updated: (WW-2227) Mishandles exception thrown from result
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes updated WW-2227:
-----------------------------
Fix Version/s: 2.0.12
> 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
> Fix For: 2.0.12
>
>
> 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.
[jira] Resolved: (WW-2227) Mishandles exception thrown from result
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Don Brown resolved WW-2227.
---------------------------
Resolution: Implemented
Assignee: Don Brown
As mentioned this should be fixed. Please reopen if it is still a problem in 2.1.1
> 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 Filter
> Affects Versions: 2.0.9
> Environment: Should happen under all environments
> Reporter: Massimo Heitor
> Assignee: Don Brown
> Fix For: 2.1.1
>
>
> 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.
[jira] Commented: (WW-2227) Mishandles exception thrown from result
Posted by "Don Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43065#action_43065 ]
Don Brown commented on WW-2227:
-------------------------------
I believe this has already been fixed on the xwork side. The proposed fix isn't adequate because it breaks other functionality (that apparently needs tests), but I think I found a workaround a few months ago. Could you please test the latest XWork snapshot and see if this is still an issue?
> 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 Filter
> Affects Versions: 2.0.9
> Environment: Should happen under all environments
> Reporter: Massimo Heitor
> Fix For: 2.1.1
>
>
> 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.
[jira] Commented: (WW-2227) Mishandles exception thrown from result
Posted by "Massimo Heitor (JIRA)" <ji...@apache.org>.
[ 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.