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

Bug 1068737

Summary: Jcr2vfs: imports in test scenarios are incorrectly migrated, the Business Central can't open the scenarios
Product: [Retired] JBoss BRMS Platform 6 Reporter: Petr Široký <psiroky>
Component: Migration ToolAssignee: Neus Miras <nmirasch>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Široký <psiroky>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen, mbiarnes, rrajasek
Target Milestone: CR1   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:57:40 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
JCR repo that will reproduce the issue.
none
The error pop-up in Business Central when opening the migrated test scenario none

Description Petr Široký 2014-02-21 19:16:58 UTC
Description of problem:
The migrated test scenarios contain the following imports structure (XML):
<imports>
    <import>org.acme.insurance.Policy</import>
    <import>org.acme.insurance.Rejection</import>
    <import>org.acme.insurance.Driver</import>
  </imports>

However the Business Central most probably expects other format as the test scenario is not loaded. Error pop-up is displayed (see attachment)

Version-Release number of selected component (if applicable):
6.0.1-ER1


How reproducible:
Always

Steps to Reproduce:
1. Download and unzip the attached JCR repo.
2. Run the migration tool against the above repo.


Actual results:
Test scenarios are not correctly migrated and the Business Central can't open them.


Expected results:
Migrated test scenarios can be opened in Business Central without errors.

Comment 1 Petr Široký 2014-02-21 19:17:42 UTC
Created attachment 866203 [details]
JCR repo that will reproduce the issue.

Comment 2 Petr Široký 2014-02-21 19:28:09 UTC
Created attachment 866215 [details]
The error pop-up in Business Central when opening the migrated test scenario

Comment 3 Rajesh Rajasekaran 2014-02-25 14:44:17 UTC
Setting blocker to - since we have a workaround

Comment 4 Petr Široký 2014-02-28 13:08:08 UTC
The Business Central expects following format of the imports:
  <imports>
    <imports>
      <org.drools.workbench.models.datamodel.imports.Import>
        <type>java.util.List</type>
      </org.drools.workbench.models.datamodel.imports.Import>
    </imports>
  </imports>

Should be easy to fix, will look into it and possibly send PR.

Comment 5 Petr Široký 2014-02-28 14:27:37 UTC
PR created, please review and merge.
https://github.com/droolsjbpm/drools-wb/pull/7

Comment 7 Petr Široký 2014-03-07 13:58:06 UTC
Could we please re-evaluate this one for 6.0.1? It certainly is not a blocker, but the issue is kind of annoying as the user needs to manually update the test scenario to make it work (open in BC). The change is fairly isolated and I already successfully tested it in the community. Thanks for consideration.

Comment 8 Michael 2014-03-18 11:01:08 UTC
Ticket cherry-picked into 6.0.1.CR1. 
Commits:
7787ed2d3861f3ed16af267a38be0c449af204b0
25d488d376976b4998b6ce24b17e985967935420

Comment 9 Petr Široký 2014-03-24 10:35:56 UTC
Verified fixed in 6.0.1-CR1.