I ran into a small problem with UriTemplate on mono vs. .NET. The code below works on .NET, but raises an IndexOutOfRangeException on mono:
var uriTemplate = new System.UriTemplate("/{mystuff}/*", true); uriTemplate.Match(new Uri("http://server"), new Uri("http://server/mystuff/path?blah")); The problem is here: https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel.Web/System/UriTemplate.cs#L324 The query parameters are split on ‘=‘ but nothing checks that there are two values in the resulting array before trying to access the second element. PR: https://github.com/mono/mono/pull/1542 Thanks. _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list