You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Andreas Joseph Krogh (JIRA)" <ji...@apache.org> on 2009/08/21 00:43:59 UTC

[jira] Created: (WW-3227) struts.action.excludePattern does not work as expected

struts.action.excludePattern does not work as expected
------------------------------------------------------

                 Key: WW-3227
                 URL: https://issues.apache.org/struts/browse/WW-3227
             Project: Struts 2
          Issue Type: Bug
          Components: Dispatch Filter
    Affects Versions: 2.1.8
            Reporter: Andreas Joseph Krogh
         Attachments: struts2-exclude-url-fix.patch

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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3227) struts.action.excludePattern does not work as expected

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso updated WW-3227:
--------------------------------

    Fix Version/s: 2.1.8

> struts.action.excludePattern does not work as expected
> ------------------------------------------------------
>
>                 Key: WW-3227
>                 URL: https://issues.apache.org/struts/browse/WW-3227
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.1.8
>            Reporter: Andreas Joseph Krogh
>             Fix For: 2.1.8
>
>         Attachments: struts2-exclude-url-fix.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3227) struts.action.excludePattern does not work as expected

Posted by "Andreas Joseph Krogh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Joseph Krogh updated WW-3227:
-------------------------------------

    Attachment: struts2-exclude-url-fix.patch

The patch fixing it

> struts.action.excludePattern does not work as expected
> ------------------------------------------------------
>
>                 Key: WW-3227
>                 URL: https://issues.apache.org/struts/browse/WW-3227
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.1.8
>            Reporter: Andreas Joseph Krogh
>         Attachments: struts2-exclude-url-fix.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.