[Mono-bugs] [Bug 71053][Nor] Changed - System.Uri refuses "http://localhost/../../../a"

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri May 20 15:56:54 EDT 2005


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 bmaurer at users.sf.net.

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

--- shadow/71053	2005-02-18 15:17:50.000000000 -0500
+++ shadow/71053.tmp.18359	2005-05-20 15:56:54.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: ilyak at mainsoft.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: System.Uri - Creation of  uri with relative path fails
+Summary: System.Uri refuses "http://localhost/../../../a"
 
 Steps to reproduce the problem:
 Uri u = new Uri("http://localhost/../../../a");
 
 Actual Results:
 System.Exception thrown with message: Invalid path.
@@ -27,6 +27,23 @@
  at system.Uri.Parse(uri.cs:1079)
  at system.Uri.Parse(uri.cs:819)
 
 
 Expected Results:
 should work
+
+------- Additional Comments From bmaurer at users.sf.net  2005-05-20 15:56 -------
+I checked this on windows:
+using System;
+class X {
+	static void Main()
+	{
+		Uri u = new Uri("http://localhost/../../../a");
+		Console.WriteLine (u);
+	}
+}
+
+On MSFT it prints
+
+$ ./x
+http://localhost/../../../a
+


More information about the mono-bugs mailing list