jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angela Schreiber (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-9385) unable to provide access to the new user
Date Thu, 18 Mar 2021 18:00:00 GMT

     [ 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)

Mime
View raw message