Bug 1006760

Summary: Cannot import system-view XML if it contains versioned nodes which are checked-in
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Horia Chiorean <hchiorea>
Component: ModeShapeAssignee: Horia Chiorean <hchiorea>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, fnguyen, ldimaggi
Target Milestone: CR1Keywords: QA-Closed
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 08:51:16 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:

Description Horia Chiorean 2013-09-11 09:03:38 UTC
When trying to import a system-view XML file which contains versioned nodes with the "isCheckedOut" property with the value "false", the following exception is raised:

avax.jcr.version.VersionException: '/testNode' (or its nearest versionable ancestor) is checked in, preventing this action
	at org.modeshape.jcr.AbstractJcrNode.checkForCheckedOut(AbstractJcrNode.java:661)
	at org.modeshape.jcr.AbstractJcrNode.setProperty(AbstractJcrNode.java:1838)
	at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.create(JcrContentHandler.java:813)
	at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.node(JcrContentHandler.java:585)
	at org.modeshape.jcr.JcrContentHandler$BasicNodeHandler.finish(JcrContentHandler.java:570)
	at org.modeshape.jcr.JcrContentHandler$SystemViewContentHandler.endElement(JcrContentHandler.java:1012)
	at org.modeshape.jcr.JcrContentHandler.endElement(JcrContentHandler.java:373)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.modeshape.jcr.JcrSession.importXML(JcrSession.java:1472)

Comment 1 JBoss JIRA Server 2013-09-11 09:59:01 UTC
Horia Chiorean <hchiorea> made a comment on jira MODE-2039

Fixed the import of documents which have the "isCheckedOut" flag set to "false".

Comment 2 JBoss JIRA Server 2013-09-11 16:37:30 UTC
Randall Hauch <rhauch> made a comment on jira MODE-2039

Merged into the 'master' branch. Leaving open until it can be cherry-picked into the '3.3.x-prod-ip6.0' branch.

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

Comment 9 belong 2013-11-19 23:18:44 UTC
Fixed before GA - setting to requires_doc_text- accordingly