You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2018/03/22 14:49:00 UTC

[jira] [Commented] (JCRVLT-283) Error during a copy (RCP)

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

Tobias Bocanegra commented on JCRVLT-283:
-----------------------------------------

having properties and nodes with the same name is very problematic. also for other tools and for all path addressing. I recommend to avoid this.

however, it would be good to see the command you are executing for the command.
also, it might be better to use the osgi based RCP bundle and initiate a task from the destination system. since the write will be local, there is a chance that it might work better.

> Error during a copy (RCP)
> -------------------------
>
>                 Key: JCRVLT-283
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-283
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: RCP
>    Affects Versions: 3.1.42
>            Reporter: Adolfo
>            Priority: Blocker
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> I get javax.jcr.PathNotFoundException on a very specific scenario.
> Node Structure :
>  
> {code:java}
> + jcr:content 
>    + par 
>      - sling:resourceType = foundation/components/parsys 
>      + childrenNode 
>        - datatable = (boolean)false 
>        - sling:resourceType = myapp/components/container 
>          + datatable 
>            - text = (String)"<table>...</table>"
>            - sling:resourceType = myapp/components/table{code}
>  
> In this structure, I have a property called "datatable" and child node called "datatable"
> When I do vlt -rcp from one instance to another the following happens:
>  * Fist time it works perfectly
>  * When I run the command again after a node is updated the entire node structure fails to be updated
> I get : 
> ERROR] Error during copy: javax.jcr.InvalidItemStateException: /content/mysite/en/section/news/2018/03/test-monday-001/jcr:content/par/childrenNode/datatable/sling:resourceType
>  
> When vlt is updating the content, it looks like VLT RCP is trying to resolve the path from the property instead from the node.
> In my case, I have more than 60K nodes like this, I can run a groovy script to change the property name and change the code to read the new property, but it should be nice to have a fix to fix the vlt tool.
> Adolfo
>  
>  
>  



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