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

Bug 453437

Summary: When a DRepresentationContainer is locked by using permission authority some actions are still available
Product: [Modeling] Sirius Reporter: Mickael LANOE <mickael.lanoe>
Component: CoreAssignee: Mickael LANOE <mickael.lanoe>
Status: CLOSED FIXED QA Contact: Belqassim Djafer <belqassim.djafer>
Severity: normal    
Priority: P3 CC: belqassim.djafer, florian.barbin, laurent.fasani, maxime.porhel, pierre-charles.david
Version: 2.0.0Keywords: triaged
Target Milestone: 3.0.0M6   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/37193
https://git.eclipse.org/r/42597
https://git.eclipse.org/r/42600
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8d00943c05349a4825ba6f76a15803964cd5e515
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=c595529ba732cb86e5d1d3d728c68923c9e18c74
https://git.eclipse.org/r/58694
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=46769d2c2f979790f5aeb7e1c148495cab4f1d4c
Whiteboard:
Attachments:
Description Flags
sample permission authority
none
sample test project none

Description Mickael LANOE CLA 2014-11-27 09:29:14 EST
In our use case of Sirius, a DRepresentationContainer is locked by using a permission authority. In this case, the creation of new representation on this container should be disabled.

The issue also exists when the user tries to delete, copy, move or extract an existing representation when their container (DRepresentationContainer) is locked by using a permission authority.
Comment 1 Mickael LANOE CLA 2014-11-27 09:51:04 EST
https://git.eclipse.org/r/#/c/37193/
Comment 2 Eclipse Genie CLA 2015-02-25 04:36:14 EST
New Gerrit change created: https://git.eclipse.org/r/42597
Comment 3 Eclipse Genie CLA 2015-02-25 05:03:34 EST
New Gerrit change created: https://git.eclipse.org/r/42600
Comment 6 Mickael LANOE CLA 2015-03-18 13:07:46 EDT
Fixed by commits:
8d00943c05349a4825ba6f76a15803964cd5e515
c595529ba732cb86e5d1d3d728c68923c9e18c74
Comment 7 Belqassim Djafer CLA 2015-04-13 04:14:57 EDT
Verified as technical issue
Comment 8 Belqassim Djafer CLA 2015-05-27 05:26:09 EDT
Created attachment 253826 [details]
sample permission authority
Comment 9 Belqassim Djafer CLA 2015-05-27 05:26:39 EDT
Created attachment 253827 [details]
sample test project
Comment 10 Belqassim Djafer CLA 2015-05-27 05:29:14 EDT
To validate this issue: 
 . add the sample permission authority plugin project to your workspace
 . launch a runtime
 . add the sample project to the runtime's workspace
 . Ensure that the creation of new representation on 'p0' is disabled.
Comment 11 Belqassim Djafer CLA 2015-05-27 05:29:33 EDT
Verified with Sirius 3.0.0 RC1
Comment 12 Pierre-Charles David CLA 2015-06-24 11:14:03 EDT
Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0.
Comment 13 Eclipse Genie CLA 2015-10-22 04:42:49 EDT
New Gerrit change created: https://git.eclipse.org/r/58694