Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: Core Actions
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cn42 Christoph Nenning
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: