Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3129

struts.enable.DynamicMethodInvocation=false still allows to call methods dynamically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.6
    • None
    • Core Actions
    • None
    • WinXP, Struts 2.1.6, JDK 1.6.0_12

    Description

      In Struts2 documentation:

      struts.enable.DynamicMethodInvocation:

          1. Set this to false if you wish to disable implicit dynamic method invocation
          2. via the URL request. This includes URLs like foo!bar.action, as well as params
          3. like method:bar (but not action:foo).

      If i set to false, i still can invoke methods dynamically with method: prefix
      http://localhost:8080/struts/Calculator?method:toString
      Result: No result defined for action testapp.struts.action.CalculatorAction and result testapp.struts.action.CalculatorAction@1dafbaf

      Invoking http://localhost:8080/struts/Calculator!toString.action works as intended:
      Result: There is no Action mapped for namespace / and action name Calculator!toString

      Attachments

        Issue Links

          Activity

            People

              wesw@wantii.com Wes Wannemacher
              fako fako
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: