opensubscriber
   Find in this group all groups
 
Unknown more information…

d : dev@struts.apache.org 21 August 2009 • 6:12AM -0400

Patch making struts.action.excludePattern work as expected
by Andreas Joseph Krogh

REPLY TO AUTHOR
 
REPLY TO GROUP




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.

--
Andreas Joseph Krogh <andreak@offi...>
Senior Software Developer / CTO
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Rosenholmveien 25       | know how to do a thing and to watch         |
1414 TrollĂ„sen          | somebody else doing it wrong, without       |
NORWAY                  | comment.                                    |
                        |                                             |
Tlf:    +47 24 15 38 90 |                                             |
Fax:    +47 24 15 38 91 |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.