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

ChainingInterceptor doesn't copy the value stack to the target action

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.3
    • Core Interceptors
    • None

    Description

      This can be easily reproduced by running the bundled struts2-showcase web application.

      http://localhost:8080/struts2-showcase-2.2.1/actionchaining/actionChain1!input.action
      results in this:
      Action Chain 1 Property 1:
      Action Chain 2 Property 1:
      Action Chain 3 Property 1: Property set in Action Chain 3

      So clearly the properties set in action 1 and action 2 are lost in the chaining process.

      For comparison, version 2.0.14 output
      http://localhost:8080/struts2-showcase-2.0.14/actionchaining/actionChain1!input.action
      results in this:
      Action Chain 1 Property 1: Property Set In Action Chain 1
      Action Chain 2 Property 1: Property Set in Action Chain 2
      Action Chain 3 Property 1: Property set in Action Chain 3

      Which is the expected result. This bug may be related to fixing of WW-2869.

      Attachments

        1. WW-3488-1.patch
          8 kB
          Lukasz Lenart
        2. WW-3488.patch
          3 kB
          Lukasz Lenart

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              mikal Mika Laukka
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: