[Mono-bugs] [Bug 471776] New: Routing pattern matching for excluding web resources doesn't match.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 2 19:13:47 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=471776
Summary: Routing pattern matching for excluding web resources
doesn't match.
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: stuart at cbtnuggets.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
I have been using the following exclusion rule from the MVC tutorial for a
while now and found that it does not work with the Mono 2.2 implementation of
Routing:
routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));
Reproducible: Always
Steps to Reproduce:
1. Add the following route:
routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));
2. Try to access a WebResource.axd file.
http://localhost:8080/WebResource.axd?d=bb294dd4b6d68974d125c4baa9868785&t=633671212470000000
Actual Results:
It doesn't match the route so the StopRoutingHandler is never used.
Expected Results:
It should match the defined route and use the StopRoutingHandler to stop
routing.
The work around seems to be changing the pattern to remove the '/':
routes.Add(new Route("{resource}.axd{*pathInfo}", new StopRoutingHandler()));
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list