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

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 6 01:19:01 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 atsushi at ximian.com.

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

--- shadow/82712	2007-09-05 17:40:11.000000000 -0400
+++ shadow/82712.tmp.29554	2007-09-06 01:19:01.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 82712
 Product: Mono: Class Libraries
 Version: 1.2
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
 Priority: Wishlist
 Component: System
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: mhabersack at novell.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -36,6 +36,16 @@
 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.
+
+------- Additional Comments From atsushi at ximian.com  2007-09-06 01:19 -------
+Note that Uri constructor also interprets the argument string as a
+file path, such as new Uri ("c:\\Windows\\System32") where .NET treats
+it as "file://c:/Windows/System32". The same happens to "/file" (or
+imagine "/proc") on Linux with Mono. It *must* be absolute.
+
+So, if you have added a wrong test case, change it properly. Note that
+our Uri test fixtures have conditional tests by platform, so such
+cases should be treated per-platform.


More information about the mono-bugs mailing list