Mantis - Resin
Viewing Issue Advanced Details
3757 major always 11-12-09 09:42 11-15-10 10:18
ferg  
ferg  
normal  
closed 3.1.8  
fixed  
none    
none 4.0.14  
0003757: filters run twice with rewrite-dispatch
(rep by Patrik Stymne)

While trying out my filter i noticed something that might be a bug in
resin. The filter was run twice for every request! The first time the
FilterChain argument to doFilter() was RewriteDispatchFilterChain and
the next time it was ServletFilterChain. I had a <rewrite-dispatch>
segment in my resin.conf file:

   <rewrite-dispatch>
    <dispatch
regexp="\.(swf|jpg|gif|zip|xml|png|mp3|jsp|html|flv|dll|dcr|cct)"/>
    <forward regexp="..."/>
    <forward regexp="..."/>
    <forward regexp="..."/>
   </rewrite-dispatch>

When I removed the <dispatch> tag (which matched the url requested) the
filter was just run once.

Notes
(0004844)
ferg   
11-15-10 10:18   
server/1k20