jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JCRVLT-99) Creating a package using package manager API requires read access to root node
Date Thu, 01 Oct 2015 15:22:26 GMT

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

angela updated JCRVLT-99:
    Attachment: JCRVLT-99_DocViewSAXImporter_JcrSysViewTransformer.patch

moving same code from {{DocViewSAXImporter}} and {{JcrSysViewTransformer}} into a utility.
the tmp-node is still created below the root node but at least it only needed to be fixed
at one location in case this causes troubles (which it would if the root node is not accessible)...
maybe have the tmp-location configurable?

> 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: Bug
>          Components: Packaging
>            Reporter: Marc Pfaff
>         Attachments: JCRVLT-99_DefaultWorkspaceFilter.patch, JCRVLT-99_DocViewSAXImporter_JcrSysViewTransformer.patch,
JCRVLT-99_Importer.patch, JCRVLT-99_JcrPackageDefinitionImpl.patch, 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

View raw message