[Mono-bugs] [Bug 82712][Wis] New - Uri incorrectly treats some relative URIs as absolute

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Sep 5 17:40:11 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mhabersack at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=82712

--- shadow/82712	2007-09-05 17:40:11.000000000 -0400
+++ shadow/82712.tmp.24385	2007-09-05 17:40:11.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 82712
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mhabersack at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Uri incorrectly treats some relative URIs as absolute
+
+System.Uri treats urls like
+
+/SomeUri.txt
+
+as absolute, while MS.NET implementation treats them as relative. The
+results of running the attached test program:
+
+1. under Mono
+
+~/SomeUri.txt
+u == ~/SomeUri.txt (False)
+/SomeUri.txt
+u == file:///SomeUri.txt (True)
+
+2. under MS.NET
+
+~/SomeUri.txt
+u == ~/SomeUri.txt (False)
+/SomeUri.txt
+u == /SomeUri.txt (False)
+
+I've added a test case to the nunit tests in System marked as NotWorking
+for now.


More information about the mono-bugs mailing list