From: SourceForge.net <no...@so...> - 2004-12-21 23:10:32
|
Bugs item #1085611, was opened at 2004-12-15 06:48 Message generated for change (Comment added) made by gregwilkins 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: Fixed Priority: 5 Submitted By: Steve Thompson (schteve) >Assigned to: Greg Wilkins (gregwilkins) 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 ---------------------------------------------------------------------- >Comment By: Greg Wilkins (gregwilkins) Date: 2004-12-21 23:10 Message: Logged In: YES user_id=44062 Thanks - fixed in CVS head now. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1085611&group_id=7322 |