tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Execution of filter before request listener
Date Tue, 06 Jan 2009 02:55:50 GMT

"Andrew Feller" <afelle1@lsu.edu> wrote in message 
news:C58792AD.5DE8%afelle1@lsu.edu...
> PROBLEM
> Tomcat is executing a Filter before the registered ServletRequestListener
>
> ENVIRONMENT
> Tomcat 6.0.18, Windows Vista, JDK 1.6.0_10
>
> CONTEXT
> We have a filter setup to intercept forwards. When an unauthenticated user
> comes in, Tomcat forwards them to our login servlet. The filter intercepts
> this forward, however the request listener has not been executed.
>
> EXPECTED BEHAVIOR
> It seems like the ServletRequestListener should have been executed prior 
> to
> the filter.  Is this a bug or part of the specification?

It is a bit of a grey area in the spec, but IMHO it is a bug.  When 
forwarding to the login-page, Tomcat bypasses normal request processing 
(including calling ServletRequestListeners).  I'd go ahead and file a bug 
report for it. 




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


Mime
View raw message