From: SourceForge.net <no...@so...> - 2004-12-15 06:48:13
|
Bugs item #1085611, was opened at 2004-12-15 01:48 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1085611&group_id=7322 Category: Servlets Group: None Status: Open Resolution: None Priority: 5 Submitted By: Steve Thompson (schteve) Assigned to: Nobody/Anonymous (nobody) Summary: filter-mapping bug in 5.1.1 Initial Comment: Using a wildcard+suffix filter-mapping in a web.xml doesn't work. For example: <filter-mapping> <filter-name>hibernateFilter</filter-name> <url-pattern>*.action</url-pattern> </filter-mapping> does NOT match URLs ending in .action. The bug is in org.mortbay.http.PathMap.match(String, String):391 The expression path.regionMatches(path.length()-pathSpec.length()-1, pathSpec,1,pathSpec.length()-1) should be: path.regionMatches(path.length()-pathSpec.length()+1, pathSpec,1,pathSpec.length()-1) HTH ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1085611&group_id=7322 |