Bug 45129

Summary: Uri.IsWellFormedUriString returns incorrect result for relative uris beginning with slash
Product: [Mono] Class Libraries Reporter: cpisto+xamarin
Component: SystemAssignee: Marek Safar <masafa>
Status: VERIFIED FIXED    
Severity: normal CC: masafa, mohitk, mono-bugs+mono
Priority: ---    
Version: 4.6.0 (C8)   
Target Milestone: 4.8.0 (C9)   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: Yes
Last known good build: 3.2.8
Attachments: Test Case

Description cpisto+xamarin 2016-10-06 17:38:30 UTC
Created attachment 17911 [details]
Test Case

Uri.IsWellformedUriString is returning False when it should be returning True for relative uris beginning with a slash - like "/test".

Test case is attached.

MS runtime output (correct):

True
True


Mono 4.6 output:

True
False
Comment 1 cpisto+xamarin 2016-10-06 18:01:17 UTC
Also of note, this is a regression, mono 3.2 behaves correctly.
Comment 2 Marek Safar 2016-10-07 11:58:50 UTC
Fixed in master and Mono 4.8
Comment 3 Mohit Kheterpal 2016-10-10 12:12:16 UTC
I have checked this issue and observed that this issue has been fixed in master build of MonoFramework-MDK-4.8.0.203.macos10.xamarin.universal_e897a5d7e4d67c5a30470a6e4ec79fadbf072560

Screencast : http://www.screencast.com/t/lqkoHk5DHvC0

Hence, closing this issue by marking it as Verified.

thanks