Jasper Rosenberg created WW-4480:
------------------------------------
Summary: 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
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)