[MGNLUI-2539] Cannot delete ACL for a Role Created: 27/Dec/13  Updated: 22/Jan/14  Resolved: 22/Jan/14

Status: Closed
Project: Magnolia UI
Component/s: security app
Affects Version/s: 5.2.1
Fix Version/s: 5.2.2

Type: Bug Priority: Critical
Reporter: Markus Grieder Assignee: Jaroslav Simak
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux/Windows, could be reproduced with a fresh installation (magnolia-bundled-webapp-5.2.1.war in tomcat/jboss).


Issue Links:
duplicate
duplicates MGNLUI-2588 Editing ACLs in Roles doesn't work pr... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

1. Edit a Role in Security App -> example delete ACL "DMS Read-Only /" in Anonymous Role
2. Save Changes
3. Edit Role again -> "deleted" ACL is still visible.

I was seeing that in SavingRoleDialogAction#createOrUpdateRole, roleItem.applyChanges() is deleting first the existing Intermediary-ACL but createOrUpdateRole is reading the not Intermediary-ACLs again (acl.readEntry(entryNode)), thats why an ACL will be never deleted.



 Comments   
Comment by Jaroslav Simak [ 15/Jan/14 ]

Fixed with commits to MGNLUI-2588
https://git.magnolia-cms.com/gitweb/?p=magnolia_ui.git;a=commit;h=e7ba57e363c1e135c583a6c766d76d1fe1ff300b

Generated at Mon Feb 12 08:57:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.