We have the tenant context rewrite valve which dispatches original request to a the context after removing tenant context (/t/tenantDomain). Hence servlet filters are not getting engaged for these dispatched requests. We need to add an extra <dispatcher> element to our servlet filters in order to execute them for dispatched requests as well. Below are two examples without and with extra dispatcher element.
Shall we add this for all our filters ? Without FORWARD dispatcher <filter-mapping> <filter-name>CaptchaFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping> With FORWARD dispatcher (additionally we can have INCLUDE dispatcher as well if we are including without forwarding) <filter-mapping> <filter-name>CaptchaFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> -- Hasintha Indrajee WSO2, Inc. Mobile:+94 771892453 <077%20189%202453>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev