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

Bug 1075039

Summary: Validating rules that extend others is broken
Product: [Retired] JBoss BRMS Platform 6 Reporter: manstis
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0   
Target Milestone: ER1   
Target Release: 6.0.2   
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:54:34 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:

Description manstis 2014-03-11 11:44:27 UTC
Description of problem:

If you create a rule that extends another and "validate" the rule; you receive an error "Unable to resolve parent rule, please check that both rules are in the
same package". Saving the rule works OK and no error messages are given.

This is caused by the validation service only loading the single rule and not the rule it extends too. Rule validation should load all rules (ideally if a rule extends another, otherwise only the single rule is OK).

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

6.0.0.GA

How reproducible:

Always

Steps to Reproduce:
1. Create "rule 1"
2. Create "rule 2" that extends "rule 1"
3. Click validate on "rule 2"

Actual results:

Validation error message is shown.

Expected results:

No validation error message is shown.

Comment 2 manstis 2014-03-11 11:54:12 UTC
The referenced BZ suffers the opposite problem! We validate all DRL files when a single DRL file is "validated" (as others could contain declared types or queries etc).