You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2021/03/18 18:00:00 UTC

[jira] [Resolved] (OAK-9385) unable to provide access to the new user

     [ https://issues.apache.org/jira/browse/OAK-9385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Angela Schreiber resolved OAK-9385.
-----------------------------------
    Resolution: Invalid

hi [~selvarajc], please send your question to the oak developer list. this is not a bug.

> unable to provide access to the new user
> ----------------------------------------
>
>                 Key: OAK-9385
>                 URL: https://issues.apache.org/jira/browse/OAK-9385
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>    Affects Versions: 1.38.0
>            Reporter: Selvaraj Chennappan
>            Priority: Major
>
> 1. Create User 1. Create User 
> We could create user successfully by using  userManager.createUser
> 2. User Access privilege to absPath
> created newSession  with newly created user.
> String[] privileges = new String[]\{PrivilegeConstants.JCR_ALL};AccessControlUtils.addAccessControlEntry(newSession, absPath, new PrincipalImpl(user.getUsername()), privileges, true);
> javax.jcr.PathNotFoundException: No tree at absPathCaused by: javax.jcr.PathNotFoundException: No tree at /advitium/repo at org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.AbstractAccessControlManager.getTree(AbstractAccessControlManager.java:164) at org.apache.jackrabbit.oak.security.authorization.accesscontrol.AccessControlManagerImpl.getApplicablePolicies(AccessControlManagerImpl.java:195)
> whereas same path can be accessed using admin session.
> Question : How do we provide access to the node for the new user.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)