[Mono-bugs] [Bug 675383] New: PackagePart.GetRelationships returns Uris starting with "/"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 26 06:07:52 EST 2011



           Summary: PackagePart.GetRelationships returns Uris starting
                    with "/"
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: agallero at netscape.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us)
AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

The Uris returned by PacakgePart.GetRelationships start with "/" in Mono (not
in .NET).
So when you want to use PackUriHelper to add the root to those Uris, they are
treated as absolute.

We could manually remove the starting "/" before adding a parent, but this
behavior is inconsistent with .NET and the Uris are relative so they shouldn't
start with a "/"

Reproducible: Always

Steps to Reproduce:
1.mcs -r:WindowsBase.dll Program.cs
2.mono Program.exe

Actual Results:  

Expected Results:  
This is the output from running the same in .NET:


While this was tested in a mac, I think it most likely happens in all

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