[Mono-bugs] [Bug 328693] New: Uri.MakeRelativeUri ignores query and fragment

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 26 16:25:04 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=328693

           Summary: Uri.MakeRelativeUri ignores query and fragment
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at ximian.com
          Found By: ---


Our implementation of Uri.MakeRelativeUri currently ignores the query and
fragment of an URI.

To reproduce, compile and run the following code snippet:

using System;

class Program
{
  static void Main ()
  {
    Uri uri1 = new Uri ("http://www.mono-project.com/");
    Uri uri2 = new Uri ("http://www.mono-project.com/index.aspx?test=ok");
    Uri relativeUri = uri1.MakeRelativeUri (uri2);
    Console.WriteLine (relativeUri.ToString ());
  }
}

Expected result:

index.aspx?test=ok

Actual result:

index.aspx


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