Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329029 - Cross-file references with XPath instead of QNames
Summary: Cross-file references with XPath instead of QNames
Status: RESOLVED FIXED
Alias: None
Product: MDT.BPMN2
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Henning Heitkoetter CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 07:28 EDT by Henning Heitkoetter CLA
Modified: 2010-10-29 08:07 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (1.53 KB, application/octet-stream)
2010-10-29 07:30 EDT, Henning Heitkoetter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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