Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329804 - Incorrect serialization due to prefix clash
Summary: Incorrect serialization due to prefix clash
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-11-09 10:09 EST by Henning Heitkoetter CLA
Modified: 2010-11-09 10:45 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (829 bytes, application/octet-stream)
2010-11-09 10:10 EST, 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-11-09 10:09:45 EST
BpmnXmlHelper.getPrefixDuringSave maps different namespaces with the same last path segment to the same prefix, for example: 'urn:modelB' and 'urn:path:modelB' both have 'modelB' as default prefix. One namespace wins and is associated with the prefix, the others are forgotten. All QNames with the prefix thus point to the "winning" namespace, even those from one of the other namespaces.

Solution: check for a clash and make the prefix unique by adding a number, e.g. "modelB_0".
Comment 1 Henning Heitkoetter CLA 2010-11-09 10:10:17 EST
Created attachment 182720 [details]
mylyn/context/zip
Comment 2 Henning Heitkoetter CLA 2010-11-09 10:11:39 EST
Fix coming soon.
Comment 3 Henning Heitkoetter CLA 2010-11-09 10:45:51 EST
Fixed in 0fcc53c91ca996598ec75f554194fecaefd157de