Bug 807359 - Cannot import repo content from XML due to VersionException. ModeShape used.
Summary: Cannot import repo content from XML due to VersionException. ModeShape used.
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: Modeshape
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: Van Halbert
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-27 15:27 UTC by Petr Široký
Modified: 2025-02-10 03:19 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:19:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
serve log file (152.73 KB, application/octet-stream)
2012-03-28 08:37 UTC, Petr Široký
no flags Details
XML repo export (8.35 KB, text/xml)
2012-03-28 08:38 UTC, Petr Široký
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker MODE-1450 0 Major Closed Importing a Guvnor system view XML file fails 2019-01-21 06:05:51 UTC

Description Petr Široký 2012-03-27 15:27:23 UTC
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.
  
Actual results:
The above exception is thrown.

Expected results:
The content is successfully imported.

Additional info:
ModeShape version used is 2.8.1.GA. Note that this was _not_ happening with 2.5.x.

Comment 2 Van Halbert 2012-03-27 15:40:43 UTC
Can you attach the XML file that was imported?

Comment 4 Horia Chiorean 2012-03-28 07:18:16 UTC
Also, please attach the server log which contains the exception.

Comment 5 Petr Široký 2012-03-28 08:37:10 UTC
Created attachment 573268 [details]
serve log file

Comment 6 Petr Široký 2012-03-28 08:38:08 UTC
Created attachment 573269 [details]
XML repo export

Comment 7 Petr Široký 2012-03-28 08:39:39 UTC
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.

Comment 8 JBoss JIRA Server 2012-03-30 11:36:39 UTC
Horia Chiorean <hchiorea> 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

Comment 9 JBoss JIRA Server 2012-03-30 13:04:41 UTC
Randall Hauch <rhauch> made a comment on jira MODE-1450

Merged into the '2.8.x' branch and cherry-picked into the '2.x' branch.

Comment 10 Petr Široký 2012-03-30 13:07:11 UTC
Thanks for fixing it so quick! I will verify that when new build arrives.

Comment 11 Ryan Zhang 2012-04-23 07:38:29 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 12 Petr Široký 2012-04-25 08:59:46 UTC
Verified fixed in 5.3.0 ER6.

Comment 16 JBoss JIRA Server 2013-10-24 09:22:02 UTC
Randall Hauch <rhauch> updated the status of jira MODE-1450 to Closed

Comment 20 Red Hat Bugzilla 2025-02-10 03:19:24 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.