[Mono-bugs] [Bug 675460] New: Uri.GetComponents does not special case port -1
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Feb 27 22:32:02 EST 2011
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: mono-bugs at lists.ximian.com
ReportedBy: novalazy+novell at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list