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

Irina Chirita updated JCRVLT-633:
---------------------------------
    Description: 
When using "vlt rcp" to copy content between servers, if there is a mismatch 
between the source and the target on the node type child ordering, then the 
process will stop silently. There is an error in the logs, however the task 
JSON returns the status ENDED instead of ERROR. Therefore any tool making use 
of the JSON status property will not show the error making error detection more 
difficult.
----
To reproduce .... TBC

 

with an error in the logs, however the , node properties are correctly updated 
or removed, and child nodes are correctly added or removed, but child node 
ordering is not updated.

1. create a node that supports child ordering (e.g., nt:unstructured or 
sling:OrderedFolder)
For example, /content/test/folderA

2. create 3 nodes (e.g., nt:unstructured) underneath that node
/content/test/folderA/one
/content/test/folderA/two
/content/test/folderA/three

3. use "vlt rcp" to copy that folder elsewhere:
{noformat}
vlt rcp -r -u 
http://admin:admin@localhost:4502/crx/-/jcr:root/content/test/folderA 
http://admin:admin@localhost:4502/crx/-/jcr:root/content/test/folderB
{noformat}
4. check that the newly created target folder "folderB" exists and has the 
correct child content in the correct order.

5. delete the node "one" from "folderB"
6. re-run the "vlt rcp" command

This should bring the target folder back into sync with the source folder, but 
it will instead create the node "one" as the last child in the target folder, 
rather than the first.

  was:
When using "vlt rcp" to copy content between servers (or on the same server), 
node properties are correctly updated or removed, and child nodes are correctly 
added or removed, but child node ordering is not updated.

1. create a node that supports child ordering (e.g., nt:unstructured or 
sling:OrderedFolder)
For example, /content/test/folderA

2. create 3 nodes (e.g., nt:unstructured) underneath that node
/content/test/folderA/one
/content/test/folderA/two
/content/test/folderA/three

3. use "vlt rcp" to copy that folder elsewhere:
{noformat}
vlt rcp -r -u 
http://admin:admin@localhost:4502/crx/-/jcr:root/content/test/folderA 
http://admin:admin@localhost:4502/crx/-/jcr:root/content/test/folderB
{noformat}

4. check that the newly created target folder "folderB" exists and has the 
correct child content in the correct order.

5. delete the node "one" from "folderB"
6. re-run the "vlt rcp" command

This should bring the target folder back into sync with the source folder, but 
it will instead create the node "one" as the last child in the target folder, 
rather than the first.


> VLT RCP doesn't fail task when child node ordering error occurs
> ---------------------------------------------------------------
>
>                 Key: JCRVLT-633
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-633
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: RCP
>    Affects Versions: 3.5.6
>            Reporter: Irina Chirita
>            Priority: Major
>
> When using "vlt rcp" to copy content between servers, if there is a mismatch 
> between the source and the target on the node type child ordering, then the 
> process will stop silently. There is an error in the logs, however the task 
> JSON returns the status ENDED instead of ERROR. Therefore any tool making use 
> of the JSON status property will not show the error making error detection 
> more difficult.
> ----
> To reproduce .... TBC
>  
> with an error in the logs, however the , node properties are correctly 
> updated or removed, and child nodes are correctly added or removed, but child 
> node ordering is not updated.
> 1. create a node that supports child ordering (e.g., nt:unstructured or 
> sling:OrderedFolder)
> For example, /content/test/folderA
> 2. create 3 nodes (e.g., nt:unstructured) underneath that node
> /content/test/folderA/one
> /content/test/folderA/two
> /content/test/folderA/three
> 3. use "vlt rcp" to copy that folder elsewhere:
> {noformat}
> vlt rcp -r -u 
> http://admin:admin@localhost:4502/crx/-/jcr:root/content/test/folderA 
> http://admin:admin@localhost:4502/crx/-/jcr:root/content/test/folderB
> {noformat}
> 4. check that the newly created target folder "folderB" exists and has the 
> correct child content in the correct order.
> 5. delete the node "one" from "folderB"
> 6. re-run the "vlt rcp" command
> This should bring the target folder back into sync with the source folder, 
> but it will instead create the node "one" as the last child in the target 
> folder, rather than the first.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to