struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4480) DefaultActionInvocation.invokeAction calls unknownHandlerManager.handleUnknownMethod for any OgnlException
Date Fri, 20 Mar 2015 14:18:38 GMT

    [ https://issues.apache.org/jira/browse/WW-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14371331#comment-14371331
] 

Lukasz Lenart commented on WW-4480:
-----------------------------------

I think it's related to WW-4433 - can you test 2.3.22?

> DefaultActionInvocation.invokeAction calls unknownHandlerManager.handleUnknownMethod
for any OgnlException
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: WW-4480
>                 URL: https://issues.apache.org/jira/browse/WW-4480
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.20
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>             Fix For: 2.3.x
>
>
> In our environment we are allowing method invocation exceptions in ognl to propagate.
(This is so we can fail fast if someone tries to write code that invokes a static method)
> However, DefaultActionInvocation.invokeAction() does not distinguish between an OgnlException
because of the method missing, and an OgnlException because the method threw an exception
during execution. It calls handleUnknownMethod in both cases.  
> Instead of just checking for OgnlException it should only consider the method unknown
if it is an ognl MethodFailedException and the cause is a java.lang.NoSuchMethodException



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

Mime
View raw message