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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
