[Mono-bugs] [Bug 77857][Nor] New - Uri.ToString() Problem

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 20 11:10:24 EST 2006


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 informatique.internet at fiducial.fr.

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

--- shadow/77857	2006-03-20 11:10:24.000000000 -0500
+++ shadow/77857.tmp.16738	2006-03-20 11:10:24.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 77857
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Uri.ToString() Problem
+
+Description of Problem:
+There's a difference between mono and MS.NET in ToString() method of Uri class
+
+Steps to reproduce the problem:
+1. try this code :
+using System;
+
+class MainClass
+{
+	public static void Main(string[] args)
+	{
+		Uri uri=new
+Uri("http://localhost:8080/test.aspx?ReturnUrl=%2fSearchDoc%2fSearcher.aspx");
+	Uri uri2=new
+Uri("http://localhost:8080/test.aspx?ReturnUrl=%252fSearchDoc%252fSearcher.aspx");
+	Console.WriteLine(String.Format("Uri.ToString() of
+'http://localhost:8080/test.aspx?ReturnUrl=%2fSearchDoc%2fSearcher.aspx' :
+\n {0}",uri.ToString()));
+	Console.WriteLine(String.Format("Uri.ToString() of
+'http://localhost:8080/test.aspx?ReturnUrl=%252fSearchDoc%252fSearcher.aspx'
+: \n {0}",uri2.ToString()));
+	}
+}
+
+
+Actual Results:
+Uri.ToString() of
+'http://localhost:8080/test.aspx?ReturnUrl=%2fSearchDoc%2fSearcher.aspx' : 
+ http://localhost:8080/test.aspx?ReturnUrl=/SearchDoc/Searcher.aspx
+Uri.ToString() of
+'http://localhost:8080/test.aspx?ReturnUrl=%252fSearchDoc%252fSearcher.aspx' : 
+ http://localhost:8080/test.aspx?ReturnUrl=%252fSearchDoc%252fSearcher.aspx
+
+Expected Results:
+'http://localhost:8080/test.aspx?ReturnUrl=%2fSearchDoc%2fSearcher.aspx' : 
+
+How often does this happen? 
+always
+
+Additional Information:
+none


More information about the mono-bugs mailing list