Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329029

Summary: Cross-file references with XPath instead of QNames
Product: [Modeling] MDT.BPMN2 Reporter: Henning Heitkoetter <hheitkoetter>
Component: CoreAssignee: Henning Heitkoetter <hheitkoetter>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Henning Heitkoetter CLA 2010-10-29 07:28:32 EDT
In case of a cross-file reference, if the referenced object has no ID, a XPath reference is used as fragment instead. This reference can not be resolved afterwards.
This can occur when the resource of the referenced object has not yet been saved (Bpmn2ResourceImpl.prepareSave not called), so that no IDs have been generated.

Our deresolution during save (QNameURIHandler.deresolve) ignores XPath-based URIs, as creation of the ID needed for a QName would be cumbersome.

prepareSave should ensure that all referenced (BPMN2) objects have an ID.

Fix coming soon.
Comment 1 Henning Heitkoetter CLA 2010-10-29 07:30:39 EDT
Created attachment 182033 [details]
mylyn/context/zip
Comment 2 Henning Heitkoetter CLA 2010-10-29 08:07:32 EDT
Fixed in 9ecbe9d344a692a368f9a4d15dd8dd08d54e8298