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.

        Activity

        Hide
        cn42 Christoph Nenning added a comment -

        I created a small test project and it is working in there, thanks!

        Show
        cn42 Christoph Nenning added a comment - I created a small test project and it is working in there, thanks!
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Struts-JDK7-master #477 (See https://builds.apache.org/job/Struts-JDK7-master/477/)
        WW-4632 Uses proper DTD version (lukaszlenart: rev e60119436a00a3ac177439c8e17d9743dc16a480)

        • archetypes/struts2-archetype-dbportlet/src/main/resources/archetype-resources/src/main/resources/struts.xml
        • plugins/tiles/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts.xml
        • plugins/javatemplates/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts-actionchaining.xml
        • apps/showcase/src/main/resources/struts-freemarker.xml
        • plugins/portlet/src/test/resources/struts.xml
        • apps/showcase/src/main/resources/struts-conversion.xml
        • apps/portlet/src/main/resources/struts-tiles.xml
        • archetypes/struts2-archetype-convention/src/main/resources/archetype-resources/src/main/resources/struts.xml
        • plugins/oval/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts-hangman.xml
        • apps/showcase/src/main/resources/struts-xslt.xml
        • apps/showcase/src/main/resources/struts-tags-non-ui.xml
        • archetypes/struts2-archetype-blank/src/main/resources/archetype-resources/src/main/resources/example.xml
        • plugins/gxp/src/main/resources/struts-plugin.xml
        • plugins/portlet/src/main/resources/struts-plugin.xml
        • apps/portlet/src/main/resources/struts-view.xml
        • apps/showcase/src/main/resources/struts-person.xml
        • plugins/jasperreports/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts-validation.xml
        • apps/showcase/src/main/resources/struts-token.xml
        • plugins/pell-multipart/src/main/resources/struts-plugin.xml
        • plugins/spring/src/main/resources/struts-plugin.xml
        • plugins/portlet-tiles/src/main/resources/struts-plugin.xml
        • plugins/cdi/src/main/resources/struts-plugin.xml
        • plugins/convention/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts-tags.xml
        • plugins/java8-support/src/main/resources/struts-plugin.xml
        • plugins/config-browser/src/main/resources/struts-plugin.xml
        • plugins/sitemesh/src/main/resources/struts-plugin.xml
        • plugins/plexus/src/main/resources/struts-plugin.xml
        • apps/portlet/src/main/resources/struts.xml
        • plugins/jfreechart/src/main/resources/struts-plugin.xml
        • archetypes/struts2-archetype-plugin/src/main/resources/archetype-resources/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts-tiles.xml
        • plugins/junit/src/test/resources/struts-convention-configuration.xml
        • archetypes/struts2-archetype-starter/src/main/resources/archetype-resources/src/main/resources/struts.xml
        • plugins/bean-validation/src/main/resources/struts-plugin.xml
        • apps/portlet/src/main/resources/struts-help.xml
        • archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/resources/struts.xml
        • apps/showcase/src/main/resources/struts-interactive.xml
        • apps/showcase/src/main/resources/struts-filedownload.xml
        • apps/showcase/src/main/resources/struts-model-driven.xml
        • archetypes/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml
        • apps/portlet/src/main/resources/struts-edit.xml
        • plugins/json/src/main/resources/struts-plugin.xml
        • plugins/embeddedjsp/src/main/resources/struts-plugin.xml
        • apps/portlet/src/main/resources/struts-eventing.xml
        • plugins/osgi/src/main/resources/struts-plugin.xml
        • apps/showcase/src/main/resources/struts-fileupload.xml
        • apps/showcase/src/main/resources/struts-tags-ui.xml
        • core/src/test/resources/struts-object-factory-result-builder.xml
        • archetypes/struts2-archetype-blank/src/main/resources/archetype-resources/src/main/resources/struts.xml
        • apps/showcase/src/main/resources/struts-wait.xml
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Struts-JDK7-master #477 (See https://builds.apache.org/job/Struts-JDK7-master/477/ ) WW-4632 Uses proper DTD version (lukaszlenart: rev e60119436a00a3ac177439c8e17d9743dc16a480) archetypes/struts2-archetype-dbportlet/src/main/resources/archetype-resources/src/main/resources/struts.xml plugins/tiles/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts.xml plugins/javatemplates/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts-actionchaining.xml apps/showcase/src/main/resources/struts-freemarker.xml plugins/portlet/src/test/resources/struts.xml apps/showcase/src/main/resources/struts-conversion.xml apps/portlet/src/main/resources/struts-tiles.xml archetypes/struts2-archetype-convention/src/main/resources/archetype-resources/src/main/resources/struts.xml plugins/oval/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts-hangman.xml apps/showcase/src/main/resources/struts-xslt.xml apps/showcase/src/main/resources/struts-tags-non-ui.xml archetypes/struts2-archetype-blank/src/main/resources/archetype-resources/src/main/resources/example.xml plugins/gxp/src/main/resources/struts-plugin.xml plugins/portlet/src/main/resources/struts-plugin.xml apps/portlet/src/main/resources/struts-view.xml apps/showcase/src/main/resources/struts-person.xml plugins/jasperreports/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts-validation.xml apps/showcase/src/main/resources/struts-token.xml plugins/pell-multipart/src/main/resources/struts-plugin.xml plugins/spring/src/main/resources/struts-plugin.xml plugins/portlet-tiles/src/main/resources/struts-plugin.xml plugins/cdi/src/main/resources/struts-plugin.xml plugins/convention/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts-tags.xml plugins/java8-support/src/main/resources/struts-plugin.xml plugins/config-browser/src/main/resources/struts-plugin.xml plugins/sitemesh/src/main/resources/struts-plugin.xml plugins/plexus/src/main/resources/struts-plugin.xml apps/portlet/src/main/resources/struts.xml plugins/jfreechart/src/main/resources/struts-plugin.xml archetypes/struts2-archetype-plugin/src/main/resources/archetype-resources/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts-tiles.xml plugins/junit/src/test/resources/struts-convention-configuration.xml archetypes/struts2-archetype-starter/src/main/resources/archetype-resources/src/main/resources/struts.xml plugins/bean-validation/src/main/resources/struts-plugin.xml apps/portlet/src/main/resources/struts-help.xml archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/resources/struts.xml apps/showcase/src/main/resources/struts-interactive.xml apps/showcase/src/main/resources/struts-filedownload.xml apps/showcase/src/main/resources/struts-model-driven.xml archetypes/struts2-archetype-portlet/src/main/resources/archetype-resources/src/main/resources/struts.xml apps/portlet/src/main/resources/struts-edit.xml plugins/json/src/main/resources/struts-plugin.xml plugins/embeddedjsp/src/main/resources/struts-plugin.xml apps/portlet/src/main/resources/struts-eventing.xml plugins/osgi/src/main/resources/struts-plugin.xml apps/showcase/src/main/resources/struts-fileupload.xml apps/showcase/src/main/resources/struts-tags-ui.xml core/src/test/resources/struts-object-factory-result-builder.xml archetypes/struts2-archetype-blank/src/main/resources/archetype-resources/src/main/resources/struts.xml apps/showcase/src/main/resources/struts-wait.xml
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Upgraded to proper DTD version, that should solve the problem

        Show
        lukaszlenart Lukasz Lenart added a comment - Upgraded to proper DTD version, that should solve the problem
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit e60119436a00a3ac177439c8e17d9743dc16a480 in struts's branch refs/heads/master from Lukasz Lenart
        [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=e601194 ]

        WW-4632 Uses proper DTD version

        Show
        jira-bot ASF subversion and git services added a comment - Commit e60119436a00a3ac177439c8e17d9743dc16a480 in struts's branch refs/heads/master from Lukasz Lenart [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=e601194 ] WW-4632 Uses proper DTD version

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development