Bug 754459 - Guided Rule Editor : mixing formula and field constraint in same pattern makes editor crash
Summary: Guided Rule Editor : mixing formula and field constraint in same pattern make...
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: User Interface
Version: 5.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-16 15:19 UTC by manstis
Modified: 2020-04-27 01:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
An unhandled null pointer caused the guided rule editor to crash when a normal field constraint and a formula were added to the same pattern. This issue has been resolved and these circumstances no longer cause the guided rule editor to crash.
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GUVNOR-1753 0 Major Resolved Guided Rule Editor : mixing formula and field constraint in same pattern makes editor crash 2012-12-19 08:37:29 UTC

Description manstis 2011-11-16 15:19:14 UTC
Description of problem:

In the guided rule editor (BRL) if you add a normal field constraint and then a formula to the same pattern the editor crashes. There is no work-around.

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


How reproducible:


Steps to Reproduce:
1. Create a new rule
2. Add a condition
3. Then do this in any order:
4. Add a "normal" restriction
5. Add a "formula" restriction  

Actual results:

The editor crashes.

Expected results:

The editor shows both the "normal" and "formula" restrictions

Additional info:
Fix has been made to master.

Comment 1 manstis 2011-11-22 19:36:24 UTC
Back-ported to 5.3.x branch.

Comment 3 lcarlon 2012-06-04 00:10:07 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The guided rule editor would crash when a normal field constraint and a formula were added to the same pattern.

Comment 4 lcarlon 2012-06-04 00:10:58 UTC
Hi Mike,

If you could let me know how this was resolved I'll add the information to the release notes.

Thanks
Lee

Comment 5 manstis 2012-06-05 21:08:16 UTC
Sure Lee. There was an unhandled null pointer check that caused the problem. Formulas do not relate to a specific field so some code that examined the field name when parsing formula was failing. This only occurred if the Pattern contained regular constraints.

Comment 6 lcarlon 2012-06-05 23:57:02 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-The guided rule editor would crash when a normal field constraint and a formula were added to the same pattern.+An unhandled null pointer caused the guided rule editor to crash when a normal field constraint and a formula were added to the same pattern. This issue has been resolved and these circumstances no longer cause the guided rule editor to crash.

Comment 7 lcarlon 2012-06-06 00:01:44 UTC
Thanks Mike.


Note You need to log in before you can comment on or make changes to this bug.