Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3174

ComposableRequestProcessor.process() should invoke Context's release() method inside a finally clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.10
    • 1.3.12, 1.4.0
    • Core
    • None
    • n/a

    Description

      The process method in org.apache.struts.chain.ComposableRequestProcessor invokes release() on the ActionContext only on success.

      The release() method should be invoked regardless of the result of the execution.

      To fix, simply add a finally clause around the line like this:

      finally {
      context.release();
      }

      Attachments

        Activity

          People

            pbenedict Paul Benedict
            os111 ori
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: