[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


User doc.formatique at gmail.com added comment

           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:
Gecko/20091020 Ubuntu/9.10 (karmic) Firefox/3.5.3

csharp> new

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.


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