[Mono-dev] URL Encoded Slashs

Diego Frata diego.frata at gmail.com
Sat Apr 13 22:53:34 UTC 2013


I've came across a bug on System.Uri implementation that may cause some F# Type Providers from FSharp.Data to fail on Mono/Xamarin Studio.

The issue arises when constructing a System.Uri from a path that contains a encoded slash, like: http://example.com/%2F. The path is normalized and the %2F is unencoded to /. This causes the HTTP request to be made to a different resource, thus failing.

On your Bugzilla there's already a report for this bug (https://bugzilla.xamarin.com/show_bug.cgi?id=9576). According to the StackOverflow link in the bug report, the RFC 3986 allows the use of encoded slashs on the URI -- and it appears to be the case because Microsoft have fixed the same bug on .NET 4.5. If taking into account the implementation of RFC 3986, there's another filled bug on Bugzilla (https://bugzilla.xamarin.com/show_bug.cgi?id=5887).

Since there's no reply on the the bug report, I thought it would be a good idea asking on the list: is there any known workaround for this? Is there anyone familiar with the System.Uri implementation and/or the RFC that could take a look on this issue?

Diego Frata

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130413/620e2757/attachment-0001.html>

More information about the Mono-devel-list mailing list