Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.3.20
-
None
Description
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
Attachments
Issue Links
- is related to
-
WW-4433 ConventionUnknownHandler change breaks exception handling in interceptors.
- Closed