This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 9133 - Route generation should be case-insensitive
Summary: Route generation should be case-insensitive
Alias: None
Product: Class Libraries
Classification: Mono
Component: Sys.Web (show other bugs)
Version: Trunk
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-12-25 21:14 UTC by Daniel Lo Nigro
Modified: 2013-01-09 17:54 UTC (History)
2 users (show)

See Also:
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:
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.

Note You need to log in before you can comment on or make changes to this bug.