[ https://issues.apache.org/jira/browse/OAK-9385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Selvaraj Chennappan updated OAK-9385: ------------------------------------- Description: 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. > 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)