Red Hat Bugzilla – Bug 807359
Cannot import repo content from XML due to VersionException. ModeShape used.
Last modified: 2013-10-24 05:22:02 EDT
Description of problem:
When trying to import repository content from XML into Guvnor, the following exception is thrown.
javax.jcr.version.VersionException: Cannot add the child node named 'assets' under '/drools:repository/drools:package_area/defaultPackage' because it is checked in and the child's node definition '*' has an on-parent-version attribute of 'COPY' (must be 'ignore' to add child to checked-in parent)
Steps to Reproduce:
1. Download and start Guvnor bundled with BRMS 5.3 ER5.
2. Setup ModeShape as JCR repository.
3. Import the attached xml file into Guvnor.
The above exception is thrown.
The content is successfully imported.
ModeShape version used is 2.8.1.GA. Note that this was _not_ happening with 2.5.x.
Can you attach the XML file that was imported?
Also, please attach the server log which contains the exception.
Created attachment 573268 [details]
serve log file
Created attachment 573269 [details]
XML repo export
Sorry, guys. I thought I attached both server.log and XML file when creating the issue, but somehow it wasn't there. It's fixed now.
Horia Chiorean <firstname.lastname@example.org> made a comment on jira MODE-1450
Issue was caused by the fact that imported nodes were considered checked-in.
The fix was to disable the check-in behaviour when importing content from XML.
The fix can be cherry-picked into the 2.x branch as well
Randall Hauch <email@example.com> made a comment on jira MODE-1450
Merged into the '2.8.x' branch and cherry-picked into the '2.x' branch.
Thanks for fixing it so quick! I will verify that when new build arrives.
Update status to ON_QA. Please verify them against ER6.
Verified fixed in 5.3.0 ER6.
Randall Hauch <firstname.lastname@example.org> updated the status of jira MODE-1450 to Closed