Community
Participate
Working Groups
Created attachment 251577 [details] ConsumerAndLibrary.zip The semantic resources of a session is wrong after an Uncontrol. Steps to reproduce: * Imports projects from ConsumerAndLibrary.zip * Open session from lib.aird * Open session from consumer.aird * Expand consumer.aird to see the node libraryP1 (under lib.ecore) * Control libraryP1 from lib.aird --> The node libraryRoot of consumer.aird is collapsed because it has been reloaded. * Uncontrol libraryP1 from lib.aird --> *KO*: consumer.ecore has been removed from the semantic resource of consumer.aird.
+++ This bug was initially created as a clone of Bug #459237 +++
New Gerrit change created: https://git.eclipse.org/r/43957
New Gerrit change created: https://git.eclipse.org/r/43960
New Gerrit change created: https://git.eclipse.org/r/43959
New Gerrit change created: https://git.eclipse.org/r/43958
New Gerrit change created: https://git.eclipse.org/r/43961
Gerrit change https://git.eclipse.org/r/43957 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f26c2739fdad4a6a3a9d2cf718328972b9643f27
Gerrit change https://git.eclipse.org/r/43959 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5970f86a46468f349f844dd9a4d691c0239b447d
Gerrit change https://git.eclipse.org/r/43960 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=06869d533750ac258d9a673cbb5a263ba532aef7
Gerrit change https://git.eclipse.org/r/43961 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f780e03d16eb296477df94d058a978af189f724b
Fixed The fix proposed contains the following parts: 1 - Differanciate the remove model - from the command "remove model" in one hand (Scenario "Remove Model" command) - when receiving a DELETE notification in other hand which is the scenario of the bug. In the latter case, the LRC will not be used to get the resources consuming the deleted resource avoiding cascading delete of the resource 2 - Disable proxy resolution when removing a resource from session to avoid recreating, at session save, an empty resource that has been previously externally deleted. 3 - Fix the bad update of controlled resources 4 - Properly remove the semantic root from aird model tag However this does not resolve the problem about the LocalResourceCollector because it is still badly updated when the session receive notification of delete or modification of used resource. This will be handle in bug 461602.
Verified on Sirius 3.0.0M6
Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0.