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

Tobias Bocanegra commented on JCRVLT-278:
-----------------------------------------

I looked at the test. even with exporting/importing with an admin session, the 
test fails. it doesn't create the user node due to:

{noformat}
[main] ERROR org.apache.jackrabbit.vault.fs.io.Importer - E 
/home/users/N/Ny/NySLfDXR9t8LaRxZi6-zs/rep:policy 
(java.lang.IllegalStateException: Parent node not found.)
{noformat}

looking at the package filter:

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
    <filter root="/home/users/N/Ny/NySLfDXR9t8LaRxZi6-zs">
        <include pattern="/home/users/N/Ny/NySLfDXR9t8LaRxZi6-zs"/>
    </filter>
    <filter root="/home/users/N/Ny/NySLfDXR9t8LaRxZi6-zs/profile">
        <include pattern="/home/users/N/Ny/NySLfDXR9t8LaRxZi6-zs/profile"/>
    </filter>
    <filter root="/home/users/N/Ny/NySLfDXR9t8LaRxZi6-zs/rep:policy"/>
</workspaceFilter>
{noformat}

it seems that it tries to import the ACL before the user node is created.
looking at the generated package, it seems that the user node is not properly 
exported, even with the admin session it does not contain the correct nodetype 
or properties.

using a very simple filter, like:

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
    <filter root="/home/users/e/ed/edWOEVHkblKQpq5JLBUEA"/>
</workspaceFilter>
{noformat}

makes the test succeed. even with the user session.

[~marett] is there a reason why you don't export the entire user node?



> Root path ACEs removed due to JCRVLT-227 
> -----------------------------------------
>
>                 Key: JCRVLT-278
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-278
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>            Reporter: Timothee Maret
>            Priority: Major
>
> With Apache SCD, we use FileVault for syncing content among instances.
> We noticed that due to the change in JCRVLT-227, the root ACEs are removed 
> upon sync.
> I created an IT test that covers the use case in 
>     https://github.com/tmaret/jackrabbit-filevault/tree/JCRVLT-278
> The test passes in a jackrabbit-filevault code base anterior to JCRVLT-227 
> and fails in a jackrabbit-filevault code base that contains JCRVLT-227.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to