[ 
https://issues.apache.org/jira/browse/JCRVLT-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952858#comment-14952858
 ] 

angela edited comment on JCRVLT-99 at 10/12/15 10:04 AM:
---------------------------------------------------------

[~ana.vinatoru], access to the root node must not be required. this is IMHO a 
bug (actually a whole set of bugs) in the fvault code base. i provided patches 
for most of them.
[~tripod], can you please review/verify the patches and apply them? thanks a 
lot. (btw: for the sake of proper resolution i will create a container issue 
(JCRVLT-100) with individual sub-tasks for the individual patches. hope that 
helps)


was (Author: anchela):
[~ana.vinatoru], access to the root node must not be required. this is IMHO a 
bug (actually a whole set of bugs) in the fvault code base. i provided patches 
for most of them.
[~tripod], can you please review/verify the patches and apply them? thanks a 
lot. (btw: for the sake of proper resolution i will create a container issue 
with individual sub-tasks for the individual patches. hope that helps)

> Creating a package using package manager API requires read access to root node
> ------------------------------------------------------------------------------
>
>                 Key: JCRVLT-99
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-99
>             Project: Jackrabbit FileVault
>          Issue Type: Sub-task
>          Components: Packaging
>            Reporter: Marc Pfaff
>         Attachments: JCRVLT-99_JcrPackageManagerImpl.patch
>
>
> When creating a package using PackageManagerImpl.assemble() the package 
> manager session used always requires read access to the root node, due to the 
> call to Session.getRootNode(). 
> {code}
> Caused by: javax.jcr.AccessDeniedException: Root node is not accessible.
>       at 
> org.apache.jackrabbit.oak.jcr.session.SessionImpl$4.perform(SessionImpl.java:304)
>       at 
> org.apache.jackrabbit.oak.jcr.session.SessionImpl$4.perform(SessionImpl.java:298)
>       at 
> org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:209)
>       at 
> org.apache.jackrabbit.oak.jcr.session.SessionImpl.getRootNode(SessionImpl.java:298)
>       at 
> org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.getPackageRoot(JcrPackageManagerImpl.java:637)
>       at 
> org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.listPackages(JcrPackageManagerImpl.java:683)
>       at 
> org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.validateSubPackages(JcrPackageManagerImpl.java:490)
>       at 
> org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.assemble(JcrPackageManagerImpl.java:458)
>       at 
> org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.assemble(JcrPackageManagerImpl.java:447)
> {code}
> I'm using version 3.1.20 (as reported by felix console), but somehow this 
> version is not available in the Jira "Affects Version/s" field. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to