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
: Route generation should be case-insensitive
Status: RESOLVED FIXED
Product: Class Libraries
Classification: Mono
Component: Sys.Web
: Trunk
: PC All
: --- normal
: ---
Assigned To: Bugzilla
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-12-25 21:14 EST by Daniel Lo Nigro
Modified: 2013-01-09 17:54 EST (History)
2 users (show)

See Also:
Tags:
Test Case URL:
External Submit: ---


Attachments

Description Daniel Lo Nigro 2012-12-25 21:14:47 EST
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 EST
Pull request sent: https://github.com/mono/mono/pull/527
Comment 2 Andres G. Aragoneses 2013-01-09 16:01:32 EST
This bug should be marked as FIXED, no?
Comment 3 Daniel Lo Nigro 2013-01-09 17:54:34 EST
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.