tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hodchenkov, Paul" <paul.hodchen...@oxagile.com>
Subject Re: Tomcat filter-mapping dispatcher forward
Date Mon, 05 Dec 2011 19:12:50 GMT
It works when using servlet 3.0 annotations api... I will write the simplest test case

Sent from my iPad

On 05.12.2011, at 20:49, "Mark Thomas" <markt@apache.org> wrote:

> 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
> 

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


Mime
View raw message