Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1217117

Summary: migration tool generates non-escaped chars that cause the whole exported package empty
Product: [Retired] JBoss BPMS Platform 6 Reporter: Gary Hu <ghu>
Component: Migration ToolAssignee: Jan <jschatte>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: ahoffer, tzimanyi
Target Milestone: DR1   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1217255 (view as bug list) Environment:
Last Closed: 2020-03-27 19:07:14 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:
Bug Depends On:    
Bug Blocks: 1217255    

Comment 2 Gary Hu 2015-04-30 16:41:27 UTC
When running the migration tool shipped by BPMS 6.1 against repository generated by BRMS 5.2, several migrated rule packages are empty.
The console output of running the migration tool shows some error due to non-escaped characters in the exported xml:

[Fatal Error] xxxx.xml:1:104: The value of attribute "name" associated with an element type "null" must not contain the '<' character.
org.xml.sax.SAXParseException; systemId: file:/xxx/jboss-brms-bpmsuite-6.1.0.GA-redhat-2-migration-tool/bin/tmp-jcr2vfs/xxx.xml; lineNumber: 1; columnNumber: 104; The value of attribute "name" associated with an element type "null" must not contain the '<' character.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)


The problematic exported rule in the xxxx.xml looks like:

]]></textContent><history><assets></assets></history></asset><asset name="myasset <= myattrib ..." type="brl" ...>

Please note that the char "<" in the name attribute is supposed to be escaped.

Comment 3 Jan 2015-05-04 12:48:54 UTC
Fixed in master: http://github.com/droolsjbpm/drools-wb/commit/1c7ff68cd

Comment 4 Jan 2015-05-04 16:46:45 UTC
Additionnal fix: http://github.com/droolsjbpm/drools-wb/commit/8acd3d70f

Comment 5 Jan 2015-05-04 17:00:29 UTC
Cherry-picked into 6.2.x: http://github.com/droolsjbpm/drools-wb/compare/620d357...16b697f

Comment 6 Tibor Zimanyi 2015-11-12 09:13:05 UTC
Verified in 6.2.0.ER5.