Mantis - Resin
Viewing Issue Advanced Details
1392 minor always 10-09-06 05:49 12-20-06 20:34
sam  
ferg  
urgent  
closed 3.0.21  
fixed  
none    
none 3.1.0  
0001392: rewrite-dispatch causes filters to be ignored
(rep by M Marich)

I have the following mapped in my resin.conf file in order to run my
non-war
deployed web application:

<web-app id='/' document-directory='C:/dev/foo/webapp'>
  <rewrite-dispatch>
    <forward regexp="^/myapp/([^\?]*)\??+(.*)$"
target="/$1?rootDir=myapp"/>
  </rewrite-dispatch>
</web-app>

What I want to do is map multiple paths to this one application. Here
is my
bug:

If I make a request to, say, http://localhost:81/test.jsp, [^] the web
application filters are processed, and my jsp is called.

If I make a request to, say, http://localhost:81/myapp/test.jsp, [^] the
rewrite-dispatch tag correctly parses the url and forwards to the JSP
in the
root context. However, none of the filters defined in
C:/dev/foo/webapp/WEB-INF/web.xml are processed. My filter mappings
look
like the following:

<!-- Root directory filter -->
<filter>
  <filter-name>RootDirFilter</filter-name>
  <filter-class>com.myco.web.filter.RootDirFilter</filter-class>
</filter>

<filter-mapping>
  <filter-name>RootDirFilter</filter-name>
  <url-pattern>/*.jsp</url-pattern>
</filter-mapping>
has duplicate 0001510closed ferg redirects that go through the <forward> tag do not go through filters 

Notes
(0001653)
sam   
12-14-06 12:57   
server/13sn.qa
(0001668)
ferg   
12-20-06 20:34   
server/13s{n,o,p,q}