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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to