Bug 743265

Summary: Cannot open {a BRL rule created in BRMS 5.0} in BRMS 5.2 -- Guided editor is not backward compatible
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: BRM (Guvnor)Assignee: manstis
Status: VERIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: BRMS 5.2.0.GACC: manstis, mharvey
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
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
repository_502_broken.xml
none
repository_502_fixed.xml none

Description Jiri Locker 2011-10-04 12:45:36 UTC
Description of problem:
I have created a simple rule that uses 'multiple' field constraints using Guided editor in BRMS 5.0.2. The important rule source snippet from the WHEN section looks like

> Person( age < 0 || > "127" )

I have exported the repository (see attachments). When I import the repository in BRMS 5.1 or BRMS 5.2.0 up to ER4, I can open the rule with no problem.

In BRMS 5.2.0 ER5, after importing the 5.0.2 repository, this rule cannot be open. 'Loading asset...' message flashes for a bit but nothing else happens. The rule doesn't open, no error message in server log.

I have compared exported XMLs of the broken repository and a working repository both of which contained the same rule and found out there is a change in the internal BRL source of the rule. This change seems to affect rules with multiple field constraints. See (and diff) attached repository exports for the difference in the BRL rule source.

Version-Release number of selected component (if applicable):
BRMS 5.2.0 ER5

How reproducible:
always

Steps to Reproduce:
1. import broken 5.0.2 repository into BRMS 5.2.0 ER5
2. try opening 'brokenRule', nothing happens
  
Actual results:
the affected rules cannot be open

Expected results:
the affected rules should open

Comment 1 Jiri Locker 2011-10-04 12:48:04 UTC
Created attachment 526240 [details]
repository_502_broken.xml

Comment 2 Jiri Locker 2011-10-04 12:48:46 UTC
Created attachment 526241 [details]
repository_502_fixed.xml

Comment 3 manstis 2011-10-04 20:49:03 UTC
This regression was caused by the recent changes to improve nested accessors (https://bugzilla.redhat.com/show_bug.cgi?id=724639). The fix was to ensure fields required by the improved nested accessor handling are populated in legacy models (i.e. stored in legacy repositories).

Comment 4 Jiri Locker 2011-10-07 13:50:36 UTC
Fix verified.