Bug 807359

Summary: Cannot import repo content from XML due to VersionException. ModeShape used.
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Petr Široký <psiroky>
Component: ModeshapeAssignee: Van Halbert <vhalbert>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GAKeywords: Regression, TestBlocker
Target Milestone: ---   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:19:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
serve log file
none
XML repo export none

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.