[Mono-bugs] [Bug 549135] New: System.Uri.IsWellFormedUriString doesn't support '#'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 22 07:38:40 EDT 2009


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

User doc.formatique at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=549135#c1

           Summary: System.Uri.IsWellFormedUriString doesn't support '#'
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: doc.formatique at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3)
Gecko/20091020 Ubuntu/9.10 (karmic) Firefox/3.5.3

csharp> new
Uri("http://www.example.com/index.php#1").IsWellFormedOriginalString();
false

Should be true. The problem is that IsWellFormedOriginalString() uses
EscapeString (string), which in turn calls EscapeString (string str, bool
escapeReserved=false, bool escapeHex=true, bool escapeBrackets=true)

.. while escapeHex should be false.

Regards,

Reproducible: Always

Steps to Reproduce:
1. var u = new Uri("http://www.example.com/index.php#1");
2. Assert.IsTrue(u.IsWellFormedOriginalString());

Actual Results:  
Assertion failure

Expected Results:  
Assertion OK.

-- 
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