https://bugzilla.novell.com/show_bug.cgi?id=675460
https://bugzilla.novell.com/show_bug.cgi?id=675460#c0 Summary: Uri.GetComponents does not special case port -1 Classification: Mono Product: Mono: Class Libraries Version: 2.10.x Platform: x86-64 OS/Version: Linux Status: NEW Severity: Minor Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Description of Problem: Uri.GetComponents does not special case port -1. Steps to reproduce the problem: 1. run the test program (see below) Actual Results: Prints "file://:-1/home/user/test.xml" Expected Results: Print "file:///home/user/test.xml" How often does this happen? Always. Additional Information: Here is the example program: using System; public class t1 { public static void Main(string[] args) { Uri u = new Uri("file:///home/user/test.xml"); System.Console.WriteLine( u.GetComponents( UriComponents.Scheme | UriComponents.HostAndPort | UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped ) ); } } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
