Community
Participate
Working Groups
It should not be possible to create new elements on a read only resource, even in the cache. Currently we can create new diagrams (only the diagram, no graphical elements inside). We can also apply profiles and stereotypes on read only elements. In both cases, the request to pass the resource in write mode is done only when the user tries to save its model. This behavior induces risks of inconsistencies between resources. The request for passing a resource in write mode should be done immediately after the user action and the cache model should be modified only if the user accepts this request.
This problem concerns also tables.
The possibility that we can create diagram on read only resource, it is normal, because it is only references. But it is not normal, that we can create element (diagram, or model explorer) in read only resource. it is a regression. So I change the bug to major.
Camille, I guess we can close this task, isn't? thanks, cheers.... Sébastien.
Created attachment 238954 [details] Example Screenshot
Hi, This bug is still valid. If I have a model with a class diagram. On the diagram I have a class A and I have dragged and dropped a "read-only" element, such as Real, from the UML Primitive Types package. I can now create a dependency from the Real element to A. All looks fine in the diagram but the Real element in the UML Primitive Types of course has not be changed. Upon reloading the diagram I will see the the operation did not work. See sreenshot.
Papyrus doesn't provide a true read-only mode yet; nothing more than a few graphical hints. Bug 323802 is focused on providing a real read-only feature; it should be finished soon.
Really nice fix in M6. The tooltip shows this sort of relationship is no longer possible. Confirmed fixed.
> Confirmed fixed. I close the task