Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320596 - XMLSerialization: IDs generated for elements without ID attribute
Summary: XMLSerialization: IDs generated for elements without ID attribute
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-07-22 04:26 EDT by Henning Heitkoetter CLA
Modified: 2010-07-22 04:33 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Heitkoetter CLA 2010-07-22 04:26:22 EDT
The Bpmn2Resource generates IDs for all elements (to ensure references by ID), even for those that do not have a corresponding structural feature (e.g. Import). Furthermore, an ID is generated even if the ID attribute has already been set, leading to a duplicate attribute.

The deserialization of resources with one of these errors fails with a FeatureNotFoundException; resp. SAXParseException.

Solution: Explicitly set IDs on save, where available, instead of useUUIDs=true.

Fix coming.
Comment 1 Henning Heitkoetter CLA 2010-07-22 04:33:24 EDT
Fixed in cb662cfb111947f6d26d642bc485528a46beb42b

Tests:
org.eclipse.bpmn2.tests.XMLSerializationTest.testIdSerialization()
org.eclipse.bpmn2.tests.XMLSerializationTest.testNoIDForImport()
org.eclipse.bpmn2.tests.XMLSerializationTest.testIDAlreadySet()