[MGNLUI-2468] Security app fails to save when encountering permissions assignment for workspace that no longer exists Created: 02/Dec/13  Updated: 24/Jan/14  Resolved: 11/Dec/13

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

Type: Bug Priority: Blocker
Reporter: Aleksandr Pchelintcev Assignee: Tobias Mattsson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLUI-2357 Check user permissions when saving ACLs Closed
duplicate
is duplicated by MAGNOLIA-5638 Unable to Edit Security Roles Closed
relation
is related to MAGNOLIA-5523 Remove permissions for no longer exis... Closed
is related to MAGNOLIA-5539 Remove permissions for no longer exis... 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:
Sprint: 5.2.1

 Description   

When saving a Role dialog in security app, validation fails with an exception because workspace (unrelated to change) no longer exists.
noformat
...
Caused by: javax.jcr.NoSuchWorkspaceException: Store
at info.magnolia.repository.DefaultRepositoryManager.getSession(DefaultRepositoryManager.java:229)
at info.magnolia.context.DefaultRepositoryStrategy.internalGetSession(DefaultRepositoryStrategy.java:63)
at info.magnolia.context.AbstractRepositoryStrategy.getSession(AbstractRepositoryStrategy.java:76)
at info.magnolia.context.AbstractContext.getJCRSession(AbstractContext.java:134)
at info.magnolia.context.MgnlContext.getJCRSession(MgnlContext.java:650)
at info.magnolia.security.app.dialog.action.SaveRoleDialogAction.validate(SaveRoleDialogAction.java:158)
at info.magnolia.security.app.dialog.action.SaveRoleDialogAction.execute(SaveRoleDialogAction.java:123)
noformat

app should be more lenient and just ignore all permissions for workspaces that are not reachable.



 Comments   
Comment by Daniel Lipp [ 03/Dec/13 ]

Reopening because the duplicate issue will used for required changes to m_main.

Comment by Tobias Mattsson [ 10/Dec/13 ]

The UI should be able to handle acls for workspaces that does not exist. We need to handle this case.

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