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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.10
    • Fix Version/s: 1.3.12, 1.4.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: