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

Bug 329804

Summary: Incorrect serialization due to prefix clash
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-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