Bug 796612

Summary: Error during validation of model in Guvnor
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Sona Mala <smala>
Component: BRM (Guvnor)Assignee: manstis
Status: VERIFIED --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: BRMS 5.3.0.GACC: jlocker, manstis
Target Milestone: ---Keywords: Regression
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Linux   
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:
Bug Depends On:    
Bug Blocks: 754093    
Attachments:
Description Flags
Server log, source code of model none

Description Sona Mala 2012-02-23 10:30:34 UTC
Created attachment 565251 [details]
Server log, source code of model

Description of problem:
During validation of model, an alert "Unable to validate this asset. (Check log for detailed messages)." appears. Server log contains an error (the description is attached)


Version-Release number of selected component (if applicable):
BRMS-standallone-5.3.0.ER4

How reproducible:
Validation of new or empty model is ok. After saving non-empty model, the validation error appears.

Steps to Reproduce:
1. Open new or empty model
2. Add some fields
3. Validate
4. Save the model
5. Validate
  
Actual results:
Step 3. Validation is ok. The source code of model is attached.
Step 5. Validation failed. The source code of model is attached.

Expected results:
If I do not change a model, I expect the same result of validation.

Additional info:

Comment 1 Jiri Locker 2012-02-23 13:36:35 UTC
This is a regression. After saving the declarative model, the whole package is broken. Rules that use facts from the declarative model cannot be validated, test scenarios cannot be run and the package cannot be built.

Comment 4 Sona Mala 2012-02-27 10:13:54 UTC
I tried save a declarative model with two facts: 

1.	|	declare Fact
2.	|	    field: String
3.	|	end
4.	|	
5.	|	declare Fact2 extends Fact
6.	|	    number: Integer
7.	|	end

After saving the source view looks like:

1.	|	declare Fact extends Object
2.	|	    field: String
3.	|	end
4.	|	
5.	|	declare Fact2 extends Object
6.	|	    number: Integer
7.	|	end

When I am creating new rule I can not find Fact2.field. I lost information that Fact2 extends Fact.

Comment 5 manstis 2012-03-15 14:45:51 UTC
This is due to a regression in Drools Expert. I have asked for a fix made to
master to be back-ported... and am awaiting confirmation it has been completed. See https://bugzilla.redhat.com/show_bug.cgi?id=754093

Comment 8 Anne-Louise Tangring 2012-03-28 14:47:52 UTC
Setting Blocker flag as agreed on in triage meeting.

Comment 9 JBoss JIRA Server 2012-03-30 12:50:02 UTC
Michael Anstis <michael.anstis> updated the status of jira JBRULES-3418 to Coding In Progress

Comment 10 JBoss JIRA Server 2012-03-30 12:50:08 UTC
Michael Anstis <michael.anstis> updated the status of jira JBRULES-3417 to Coding In Progress

Comment 11 JBoss JIRA Server 2012-03-30 12:54:32 UTC
Michael Anstis <michael.anstis> updated the status of jira JBRULES-3418 to Resolved

Comment 12 JBoss JIRA Server 2012-03-30 12:54:42 UTC
Michael Anstis <michael.anstis> updated the status of jira JBRULES-3417 to Resolved

Comment 13 Ryan Zhang 2012-04-23 07:38:18 UTC
Update status to ON_QA. Please verify them against ER6.