Community
Participate
Working Groups
The PathmapManager only denormalizes file: and platform:/resource URI schemes. As a result, when I create a Resource (using ResourceSet.createResource(URI) method) for a pathmapped URI of a resource deployed in a bundle JAR, it ends up having a different URI than I asked to be created, and my application goes bonkers. This happens because my pathmap://FOO/bar.xmi URI is normalized to jar:file:/path/to/eclipse/plugins/com.example_1.0.0.jar!/resources/bar.xmi but then denormalization fails because the jar:file: scheme is arbitrarily disallowed. So, instead of getting a resource with the pathmap URI, I get a resource with the jar:file: URI. For any pathmap: URI that the PathmapManager can normalize, the PathmapManager *must* be able to denormalize it to restore the original pathmap: URI.
Created attachment 41789 [details] Patch to fix the problem Attached a patch that fixes the problem by removing an extraneous check for file: or platform:/resource URI schemes in the PathmapManager.denormalize() method.
Adding Vishy to cc: to review and (hopefully) commit the patch.
Reviewed and applied patch
Committed patch
[target cleanup] 1.0 RC3 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime EMF was the original product and component for this bug