Bug 58400 - System.Uri broken with files
Summary: System.Uri broken with files
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 5.2 (2017-04)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Future Release
Assignee: Katelyn Gadd
URL:
Depends on:
Blocks:
 
Reported: 2017-07-25 20:42 UTC by Xavier Rigau
Modified: 2017-10-20 09:01 UTC (History)
6 users (show)

See Also:
Tags: bugpool-archive
Is this bug a regression?: ---
Last known good build:


Attachments
Mac screenshot (45.78 KB, image/png)
2017-07-25 20:42 UTC, Xavier Rigau
Details
Windows URI (50.66 KB, image/png)
2017-07-25 20:42 UTC, Xavier Rigau
Details

Description Xavier Rigau 2017-07-25 20:42:21 UTC
Created attachment 23799 [details]
Mac screenshot

When you create a System.Uri with this string: "file://pdsmq.payload.dotnet.txt" the LocalPath field is "/"
Comment 1 Xavier Rigau 2017-07-25 20:42:47 UTC
Created attachment 23800 [details]
Windows URI
Comment 2 Xavier Rigau 2017-07-25 20:44:01 UTC
Windows LocalPath is "\\pdsmq.payload.dotnet.txt"
Comment 3 Chris Hamons 2017-07-25 20:50:27 UTC
I can reproduce this outside of Xamarin.Mac:

csharp> var uri = new System.Uri ("file://pdsmq.payload.dotnet.txt")
csharp> uri.LocalPath
"/"
Comment 4 Marek Safar 2017-10-19 09:40:08 UTC
https://github.com/mono/mono/pull/5779

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