tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat filter-mapping dispatcher forward
Date Mon, 05 Dec 2011 18:49:34 GMT
On 05/12/2011 14:45, Hodchenkov, Paul wrote:
> Hi all,
> I am trying to configure dispatcher forward rule for filter in tomcat 7.0.22
>    <filter-mapping>
>         <filter-name>UrlRewriteFilter</filter-name>
>         <url-pattern>/*</url-pattern>
>         <dispatcher>REQUEST</dispatcher>
>         <dispatcher>FORWARD</dispatcher>
>     </filter-mapping>

That looks right at first glance.

> However, tomcat ignores dispatcher definition and does not fill dispatchers in org.apache.catalina.deploy.FilterMap
(used debug) , so it always returns REQUEST in getDispatcherMapping.

Hmm. Odd. This is tested by the TCK that every Tomcat release must pass
so I don't think there is a bug - or if there is it is an odd edge case.

I'd suggest that the way forward is to write the simplest possible test
case (1 * JSP + 1 * Servlet + web.xml should be plenty) that
demonstrates this issue. If you still see the issue with that test case,
it will probably be time to open a bug.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message