[Mono-bugs] [Bug 41998][Wis] New - Uri constructor fails with unix style path

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 27 Apr 2003 21:23:05 -0400 (EDT)


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 ianm@activestate.com.

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

--- shadow/41998	Sun Apr 27 21:23:05 2003
+++ shadow/41998.tmp.14332	Sun Apr 27 21:23:05 2003
@@ -0,0 +1,37 @@
+Bug#: 41998
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: gentoo 1.4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ianm@activestate.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Uri constructor fails with unix style path
+
+Description of Problem:
+the constructor of Uri class fails when passed a bare unix style file path
+ie withouth file:// prepended to it.
+
+Steps to reproduce the problem:
+1. 
+string somefile = @"/home/ianm/dev/test/csharp/somefile.cs";
+Uri newURI = new Uri( somefile );
+
+Actual Results:
+
+Unhandled Exception: System.UriFormatException: Invalid URI: The 
+ hostname could not be parsed at URI.Parse
+
+Expected Results:
+successful creation of new URI object
+
+How often does this happen? 
+consistently