jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Buchmann <david.buchm...@liip.ch>
Subject Session.importXML and jcr:system
Date Fri, 20 May 2011 07:38:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

i try to import a dump of a repository for functional testing.
the tests about versioning need specific older revisions of the node and
it seems the version tree is in /jcr:system

i dump the data with Session.exportSystemView and then try to reimport with
session.importXml("/", stream,
ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);

but on session.save i get the exception
javax.jcr.nodetype.ConstraintViolationException: /jcr:root/jcr:system:
mandatory child node {http://www.jcp.org/jcr/1.0}versionStorage does not
exist

when i look in my xml at the sv:name, i see the nodes jcr:root >
jcr:system > jcr:versionStorage

what am i doing wrong? do i need to specify a different path to have the
jcr:system overwritten?

i attached the zipped repository dump i try to export.

cheers,
david
- -- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3WGl4ACgkQqBnXnqWBgIv/+QCfY7VOEHt4K6LOeD4mI2tN5Vvi
wmUAn2ZeYgtkn7HOTrCl7hNckunbyATE
=itjH
-----END PGP SIGNATURE-----

Mime
View raw message