Re: import and export JCR data

2017-02-08 Thread Robert Munteanu
On Tue, 2017-02-07 at 16:18 -0700, lancedolan wrote:
> If it's not composum, then it's file-vault or JCR related, which is
> even more
> concerning. 
> 
> I'm pretty confident this isn't user error. I've given consulting
> demonstrations, teaching others the ins and outs of file-vault XML-
> to-node
> translation, the various complex rules one can combine, and also
> written
> code that dynamically assembles valid file vault packages to be
> POSTed to
> CRX package manager, which I believe also uses file vault under the
> hood...
> I'm really quite aware, in general, of how this thing should work. Of
> course
> I could be missing something, but if this is user error, then it's
> something
> esoteric and imperceptible, something very different than the CRX and
> file
> vault I'm used to.

For the record, FileVault as shipped by AEM is open source → you get
the same code.

Also the DavEx entry point is managed by the SlingDavExServlet for both
AEM and Sling so there should be no functional difference.

I suggest that you try using the vlt command-line tool as described at
[1] to see if that works.

Robert

[1]: https://cwiki.apache.org/confluence/display/SLING/Using+FileVault+
with+Sling

> 
> Here's what I'm doing:
> 
> 1) click "+" to create new package
> 2) click filter tab and "+" to create new filter
> 3) give root path "/content" and save with default Replace Import
> Mode and
> empty filter set
> 4) Click Build
> 
> Result: empty content directory in the package. Nothing in the log
> file. 
> 
> I suppose as a next step I can split all com.composum logs to a
> separate log
> and set that to DEBUG level and watch for things... Maybe do the same
> with
> org.apache.jackrabbit.vault. 
> 
> One plausible possibility seems that my /content data might be in
> some
> invalid state such that file vault can't/won't read it?? I'm really
> grasping
> at possibilities at this point.
> 
> 
> 
> --
> View this message in context: http://apache-sling.73963.n3.nabble.com
> /import-and-export-JCR-data-tp4069390p4070161.html
> Sent from the Sling - Users mailing list archive at Nabble.com.



Re: import and export JCR data

2017-02-07 Thread Henry Saginor
Hi Lance,

I sometimes use this simple shell script [1] with file vault to import content 
from one AEM instance to another. I am happy to share if it helps. I am not 
sure if you are doing this between 2 sling instances though. But you should be 
able to change it to use export instead of rcp. Of course you would also need 
to change the command URL since it has /crx/.

Also, this just a guess, but see if your Sling instance has these bundles 
active. I think your guess is correct. The error indicates that the repository 
you are connecting to does not support the protocol you are using - WebDav in 
this case.
Jackrabbit WebDAV Library org.apache.jackrabbit.jackrabbit-webdav
Apache Sling Simple WebDAV Access to repositories org.apache.sling.jcr.webdav
Apache Sling DavEx Access to repositories org.apache.sling.jcr.davex

[1]
#!/bin/sh

help() {
echo
echo "parameters: user:password@sourceHost user:password@destHost cqPath"
echo “example: $0 admin:admin@localhost:4502  
admin:admin@localhost:4503  /content/mysite"
echo
}

case $1 in
--help | -h | -help | -hlep)
help
;;
*)
if [ `echo $@ | wc -w` -gt 2 ]
then
  vlt -v rcp -b 1000 -t 1 -r http://$1/crx/-/jcr:root$3 
http://$2/crx/-/jcr:root$3
  echo "Done!"
  echo
else
  help
fi;;
esac
> On Feb 7, 2017, at 3:18 PM, lancedolan  wrote:
> 
> If it's not composum, then it's file-vault or JCR related, which is even more
> concerning. 
> 
> I'm pretty confident this isn't user error. I've given consulting
> demonstrations, teaching others the ins and outs of file-vault XML-to-node
> translation, the various complex rules one can combine, and also written
> code that dynamically assembles valid file vault packages to be POSTed to
> CRX package manager, which I believe also uses file vault under the hood...
> I'm really quite aware, in general, of how this thing should work. Of course
> I could be missing something, but if this is user error, then it's something
> esoteric and imperceptible, something very different than the CRX and file
> vault I'm used to.
> 
> Here's what I'm doing:
> 
> 1) click "+" to create new package
> 2) click filter tab and "+" to create new filter
> 3) give root path "/content" and save with default Replace Import Mode and
> empty filter set
> 4) Click Build
> 
> Result: empty content directory in the package. Nothing in the log file. 
> 
> I suppose as a next step I can split all com.composum logs to a separate log
> and set that to DEBUG level and watch for things... Maybe do the same with
> org.apache.jackrabbit.vault. 
> 
> One plausible possibility seems that my /content data might be in some
> invalid state such that file vault can't/won't read it?? I'm really grasping
> at possibilities at this point.
> 
> 
> 
> --
> View this message in context: 
> http://apache-sling.73963.n3.nabble.com/import-and-export-JCR-data-tp4069390p4070161.html
> Sent from the Sling - Users mailing list archive at Nabble.com.



Re: import and export JCR data

2017-02-07 Thread lancedolan
If it's not composum, then it's file-vault or JCR related, which is even more
concerning. 

I'm pretty confident this isn't user error. I've given consulting
demonstrations, teaching others the ins and outs of file-vault XML-to-node
translation, the various complex rules one can combine, and also written
code that dynamically assembles valid file vault packages to be POSTed to
CRX package manager, which I believe also uses file vault under the hood...
I'm really quite aware, in general, of how this thing should work. Of course
I could be missing something, but if this is user error, then it's something
esoteric and imperceptible, something very different than the CRX and file
vault I'm used to.

Here's what I'm doing:

1) click "+" to create new package
2) click filter tab and "+" to create new filter
3) give root path "/content" and save with default Replace Import Mode and
empty filter set
4) Click Build

Result: empty content directory in the package. Nothing in the log file. 

I suppose as a next step I can split all com.composum logs to a separate log
and set that to DEBUG level and watch for things... Maybe do the same with
org.apache.jackrabbit.vault. 

One plausible possibility seems that my /content data might be in some
invalid state such that file vault can't/won't read it?? I'm really grasping
at possibilities at this point.



--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/import-and-export-JCR-data-tp4069390p4070161.html
Sent from the Sling - Users mailing list archive at Nabble.com.


Re: import and export JCR data

2017-02-07 Thread lancedolan
Hi All,


Does anybody have some terminal commands or procedure they follow for
exporting data without composum? I've downloaded this "jackrabbit-filevault"
project, and I've tried some different terminal commands after reading the
documentation. Not sure what I'm doing.


*
For those curious, why not Composum?
It is demonstrating a severe defect preventing me from building a jcr
package [https://github.com/ist-dresden/composum/issues/60]. Even if that
defect is solved, this instability is concerning enough that we need a
separate reliable process for exporting data.



--
View this message in context: 
http://apache-sling.73963.n3.nabble.com/import-and-export-JCR-data-tp4069390p4070156.html
Sent from the Sling - Users mailing list archive at Nabble.com.