https://bugzilla.novell.com/show_bug.cgi?id=675383
https://bugzilla.novell.com/show_bug.cgi?id=675383#c0 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: [email protected] ReportedBy: [email protected] QAContact: [email protected] 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: /worksheets/sheet3.xml /worksheets/sheet3.xml /worksheets/sheet2.xml /worksheets/sheet2.xml /worksheets/sheet1.xml /worksheets/sheet1.xml /styles.xml /styles.xml /theme/theme1.xml /theme/theme1.xml Expected Results: This is the output from running the same in .NET: worksheets/sheet3.xml /xl/worksheets/sheet3.xml worksheets/sheet2.xml /xl/worksheets/sheet2.xml worksheets/sheet1.xml /xl/worksheets/sheet1.xml styles.xml /xl/styles.xml theme/theme1.xml /xl/theme/theme1.xml While this was tested in a mac, I think it most likely happens in all platforms. -- 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
