[Mono-bugs] [Bug 523278] New: System.Uri.Uri.IsWellFormedUriString doesn't recognize relative URIs with colons

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 17 18:40:53 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=523278


           Summary: System.Uri.Uri.IsWellFormedUriString doesn't recognize
                    relative URIs with colons
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lunchtimemama at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Test:

using System;

class MainClass
{
    public static void Main (string[] args)
    {
        var url = @"/foo:bar";
        Console.WriteLine (Uri.IsWellFormedUriString (url,
UriKind.RelativeOrAbsolute));
    }
}

ExpectedResult:
"True" - This is the output on .NET

Actual Result:
"False"

-- 
Configure bugmail: http://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