-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Scott,
On 9/24/2009 4:19 PM, Scott Dunbar wrote: > No, I specified /* as my url-pattern: > > <filter-mapping> > <filter-name>FileFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > and my filter is not called when the URL is > http://www.hostname.tld/.svn/entries > > The servlet spec is weird here and the url-pattern in a > web-resource-collection. The "." has special meaning that seems to > indicate a file extension, not a directory. The "." only has special meaning when the URL pattern looks like this: *.[anything] All other uses of a period should be literal. If you set up a mapping for "/.svn" then the matching should be exact. Since I guess you want to protect "/*/.svn" then your approach of mapping to "/*" and then just checking for the directory name is probably the right one. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkq82ksACgkQ9CaO5/Lv0PAiGwCcC1wf++l16QB23G/a6QLqHvlj yUkAnRATnhqF0cFxzO+DWso8L1uOjFpf =4dkJ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org