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

RestWorkFlowInterceptor in struts2-rest-plugin fails to intercept correctly when method names are customised

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.1
    • Plugin - REST
    • None
    • Struts 2.1.1-SNAPSHOT using Jetty 6.1.5 on Mac OS X

    Description

      The RestWorkFlowInterceptor fails to intercept validation workflow when the method names are customised using struts constants as specified at http://struts.apache.org/2.x/docs/rest-plugin.html.

      This is because although you are allowed to customise the names of the methods using params like struts.mapper.*MethodName, the code in the interceptor uses static strings to refer to methods which could have been changed in custom config by user.

      I have submitted a patch that takes into consideration any custom configuration in users applications.

      Attachments

        1. WW-2518.patch
          2 kB
          Sarat Pediredla

        Activity

          People

            jeromy Jeromy Evans
            sarat.pediredla Sarat Pediredla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: