Bug 9133

Summary: Route generation should be case-insensitive
Product: [Mono] Class Libraries Reporter: Daniel Lo Nigro <sites+xamarin>
Component: System.WebAssignee: Bugzilla <bugzilla>
Status: RESOLVED FIXED    
Severity: normal CC: knocte, mono-bugs+mono
Priority: ---    
Version: master   
Target Milestone: Untriaged   
Hardware: PC   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:

Description Daniel Lo Nigro 2012-12-25 21:14:47 UTC
Values in the Defaults RouteValueDictionary should be case-insensitive, as they are case-insensitive on Microsoft .NET.

Given a route like this:
var route = new Route ("HelloWorld", new MyRouteHandler ()) {
	Defaults = new RouteValueDictionary (new {controller = "Home", action = "HelloWorld"})
};

The following should work:
var lowercase = route.GetVirtualPath (rc, new RouteValueDictionary
{
	{"controller", "home"},
	{"action", "helloworld"}
});
Comment 1 Daniel Lo Nigro 2012-12-25 21:28:28 UTC
Pull request sent: https://github.com/mono/mono/pull/527
Comment 2 Andres G. Aragoneses 2013-01-09 16:01:32 UTC
This bug should be marked as FIXED, no?
Comment 3 Daniel Lo Nigro 2013-01-09 17:54:34 UTC
Correct - I must have forgotten to change the status.