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

struts.action.excludePattern does not work as expected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.8
    • Fix Version/s: 2.1.8
    • Component/s: Dispatch Filter
    • Labels:
      None
    • Flags:
      Patch, Important

      Description

      Hi all.
      I noticed excludePattern doesn't work as expected in 2.1.8-SNAPSHOT.
      The problem is prepare.wrapRequest(request), it's called whether or not isUrlExcluded() which is not what we want. The whole point of setting the struts.action.excludePattern property is to tell Struts2 to "lay off" the matching URLs.

      The thing for me is that I have Struts2 in the same webapp as other stuff, Struts-1.1 being one of them, and I need the multipart-request to reach the Struts-1.1 actions which resides in an URL which matches the excludePattern.

      Attached is a patch fixing it, hopefully this will make it in the 2.1.8-GA.

        Attachments

        1. struts2-exclude-url-fix.patch
          2 kB
          Andreas Joseph Krogh

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andreak Andreas Joseph Krogh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: