[Mono-bugs] [Bug 54918][Nor] New - Uri constructed with "file:///path" turns into a relative uri.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 26 Feb 2004 20:09:48 -0500 (EST)


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 mlasky@novell.com.

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

--- shadow/54918	2004-02-26 20:09:48.000000000 -0500
+++ shadow/54918.tmp.30676	2004-02-26 20:09:48.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 54918
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Red Hat 9.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mlasky@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Uri constructed with "file:///path" turns into a relative uri.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Construct a Uri object with a path such as "file:///usr/bin".  Uri turns
+into a relative Uri when invoking Uri.ToString() method.
+
+Steps to reproduce the problem:
+1. Construct Uri object with path such as "file:///usr/bin".
+2. Use Console.WriteLine( Uri ) to show the path.
+3. Source to reproduce:
+
+using System;
+
+using System.IO;
+
+
+
+namespace Test
+
+{
+
+	class Class1
+
+	{
+
+		static void Main()
+
+		{
+
+			Uri uri = new Uri( "file:///usr/bin" );
+
+			Console.WriteLine( uri );
+
+		}
+
+	}
+
+}
+
+Actual Results:
+file://usr/bin
+
+Expected Results:
+file:///usr/bin
+
+
+How often does this happen? 
+always
+
+Additional Information:
+This is similar to bug #51844, the difference is preceding the path with
+"file://".