Community
Participate
Working Groups
Build Identifier: Moving a legacy model element to another container does not seems to be properly propagated. For instance, if an element E is contained in a container C1 and moved to C2, other clientd will see that : - C1 has no contents, - C2 contains E, - but the container of E is still C1. Eike, I let you complete this issue with the JUnit and patch we exchanged. Thanks, Steve Reproducible: Always Steps to Reproduce: 1.Change container of a legacy model element and commit 2.Check the eContainer feature of this element on an other client
This issue happened on CDO 4.0 maintenance branch.
Created attachment 211475 [details] Junit test case I confirm that: 1) The number of lines that I changed is smaller than 250. 2) I am the only author of these changed lines. 3) I apply the EPL to these changed lines.
commit 3c9c1a9c8438bc0e3db0de8367fbf1a8cf8c3117
Port to 4.1 via bug 372311.
Created attachment 211520 [details] JUnit test case new version
Hi Eike, As we talk today, I reopened the issue and added a new version of the JUnit test case. You will see that the containment feature of the element session2d is null. Thanks, Steve
Seems we need to call store.setContainer(object, null, container, InternalEObject.EOPPOSITE_FEATURE_BASE - containingFeatureID); rather than store.setContainer(object, null, container, containingFeatureID);
commit a9bf83c5515f541052263dfc1f814c74fedb1c6f
Closing.