Mantis - Resin
Viewing Issue Advanced Details
1510 major always 12-13-06 15:41 01-01-07 12:03
jwetzler  
ferg  
normal  
closed 3.0.19  
duplicate  
none    
none  
0001510: redirects that go through the <forward> tag do not go through filters
We are using <rewrite-dispatch> to handle our redirects and forwards, and in a few particular cases, we are using the <forward> tag to forward some servlets.

We also have a filter, which matches on the url-pattern '*', which these forwarded servlets need to go through.

So if we have:
<rewrite-dispatch>
    <forward regexp='/foo/servlet.baz' target='/bar/servlet.baz'
</rewrite-dispatch>
<filter filter-name='MyFilter' filter-class='sys.filter.MyFilter'/>
<filter-mapping url-pattern='*' filter-name='MyFilter'/>

Then going to /foo/servlet.baz, it never goes through MyFilter. Going through /bar/servlet.baz does go through MyFilter however.

Shouldn't things that get forwarded go through filters too?
duplicate of 0001392closed ferg rewrite-dispatch causes filters to be ignored 

Notes
(0001679)
ferg   
01-01-07 12:03   
0001514