Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5
-
None
Description
My app uses json plugin and my root-package extends json-default. When I specify strict-method-invocation="false" on my root-package it is not possible to access any methods. I get exceptions like this:
com.opensymphony.xwork2.config.ConfigurationException: This method: login for action login is not allowed! at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200) ~[struts2-core-2.5.jar:2.5] at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63) ~[struts2-core-2.5.jar:2.5] at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37) ~[struts2-core-2.5.jar:2.5] at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) ~[struts2-core-2.5.jar:2.5] at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546) [struts2-core-2.5.jar:2.5] at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81) [struts2-core-2.5.jar:2.5] at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:113) [struts2-core-2.5.jar:2.5]
When I specify allowed methods (in xml or with annotations) I can access those.