[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



           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? 


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");
                UriComponents.Scheme | UriComponents.HostAndPort |
UriComponents.Path | UriComponents.KeepDelimiter,

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