Change By: Tobias Mattsson (22/Nov/13 5:20 PM)
Description: The anonymous role has acl entries for "acl_Store" a workspace that doesn't exist. When attempting to save the role the validation of wether the current user has access to this repository fails.

It can fail in two different ways:

* Select the anonymous role
* Choose Edit Role
* Click save
* Fails with NPE

{noformat}
Caused by: java.lang.NullPointerException
at org.apache.jackrabbit.core.SessionImpl.hasPermission(SessionImpl.java:1172)
at info.magnolia.jcr.wrapper.DelegateSessionWrapper.hasPermission(DelegateSessionWrapper.java:239)
at info.magnolia.jcr.wrapper.DelegateSessionWrapper.hasPermission(DelegateSessionWrapper.java:239)
at info.magnolia.jcr.wrapper.DelegateSessionWrapper.hasPermission(DelegateSessionWrapper.java:239)
at info.magnolia.jcr.wrapper.DelegateSessionWrapper.hasPermission(DelegateSessionWrapper.java:239)
at info.magnolia.cms.security.PermissionUtil.isGranted(PermissionUtil.java:136)
at info.magnolia.security.app.dialog.action.SaveRoleDialogAction.validate(SaveRoleDialogAction.java:158)
at info.magnolia.security.app.dialog.action.SaveRoleDialogAction.execute(SaveRoleDialogAction.java:104)
at info.magnolia.ui.api.action.AbstractActionExecutor.execute(AbstractActionExecutor.java:74)
{noformat}

The other way:

* Select the anonymous role
* Choose Edit Role
* Switch to 'Access control lists' tab
* Enable read access to website workspace
* Fails with javax.jcr.NoSuchWorkspaceException

{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)
... 102 more
{noformat}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to