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

J. Casalino updated JCRVLT-119:
-------------------------------
    Description: 
Attempting to copy a deep content path to a destination repository which does 
not currently have the parent paths already created will throw the error at 
[1].  It seems vlt rcp only supports creating subfolders if the parent folder 
already exists or is only one level deep.  For example:

{noformat}
./vlt rcp -b 100 -r -u -n 
http://admin:<password>@localhost:4502/crx/-/jcr:root/content/dam/lsa-site-assets/en
 
http://admin:<password>@destionation.server:4502/crx/-/jcr:root/content/dam/lsa-site-assets/en
{noformat}

where /content/dam/lsa-site-assets/en exists on source and only /content/dam on 
Destination will fail.

Updating the command to
{noformat}
./vlt rcp -b 100 -r -u -n 
http://admin:<password>@localhost:4502/crx/-/jcr:root/content/dam/lsa-site-assets
 
http://admin:<password>@destionation.server:4502/crx/-/jcr:root/content/dam/lsa-site-assets
{noformat}

With the same conditions as above, will succeed.

[1]
[ERROR] Error while retrieving dst parent node /content/dam/lsa-site-assets: 
javax.jcr.PathNotFoundException: /content/dam/lsa-site-assets

  was:
Attempting to copy a deep content path to a destination repository which does 
not currently have the parent paths already created will throw the error at 
[1].  It seems vlt rcp only supports creating subfolders if the parent folder 
already exists or is only one level deep.  For example:

{noformat}
./vlt rcp -b 100 -r -u -n 
http://admin:<password>@localhost:4502/crx/-/jcr:root/content/dam/lsa-site-assets/en
 
http://admin:<password>@destionation.server:4502/crx/-/jcr:root/content/dam/lsa-site-assets/en
{noformat}

where /content/dam/lsa-site-assets/en exists on source and only /content/dam on 
Destination will fail.

Updating the command to
./vlt rcp -b 100 -r -u -n 
http://admin:<password>@localhost:4502/crx/-/jcr:root/content/dam/lsa-site-assets
 
http://admin:<password>@destionation.server:4502/crx/-/jcr:root/content/dam/lsa-site-assets

With the same conditions as above, will succeed.

[1]
[ERROR] Error while retrieving dst parent node /content/dam/lsa-site-assets: 
javax.jcr.PathNotFoundException: /content/dam/lsa-site-assets


> PathNotFoundException occurs when copying folders more than one level deep
> --------------------------------------------------------------------------
>
>                 Key: JCRVLT-119
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-119
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>    Affects Versions: 3.1.16
>            Reporter: J. Casalino
>
> Attempting to copy a deep content path to a destination repository which does 
> not currently have the parent paths already created will throw the error at 
> [1].  It seems vlt rcp only supports creating subfolders if the parent folder 
> already exists or is only one level deep.  For example:
> {noformat}
> ./vlt rcp -b 100 -r -u -n 
> http://admin:<password>@localhost:4502/crx/-/jcr:root/content/dam/lsa-site-assets/en
>  
> http://admin:<password>@destionation.server:4502/crx/-/jcr:root/content/dam/lsa-site-assets/en
> {noformat}
> where /content/dam/lsa-site-assets/en exists on source and only /content/dam 
> on Destination will fail.
> Updating the command to
> {noformat}
> ./vlt rcp -b 100 -r -u -n 
> http://admin:<password>@localhost:4502/crx/-/jcr:root/content/dam/lsa-site-assets
>  
> http://admin:<password>@destionation.server:4502/crx/-/jcr:root/content/dam/lsa-site-assets
> {noformat}
> With the same conditions as above, will succeed.
> [1]
> [ERROR] Error while retrieving dst parent node /content/dam/lsa-site-assets: 
> javax.jcr.PathNotFoundException: /content/dam/lsa-site-assets



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

Reply via email to