Bug 1009348

Summary: IndexOutOfBoundsException is thrown, when operator and is inside conditional element not
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: mproctor, mwinkler
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:16:32 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 Tomas David 2013-09-18 09:16:47 UTC
Description of problem:
When conditional element 'not' is used with length sliding window and two parts separated by operator 'and' are inside 'not', test fails with IndexOutOfBoundsException. 

Version-Release number of selected component (if applicable):
Drools 6.0.0-SNAPSHOT
Drools 6.0.0.ER3

How reproducible:
Pull request #257 submited in Drools.

Steps to Reproduce:
1. Make a drl file with one rule, which contains conditional element 'not' after 'when'. Two parts separated by operator 'and' should be inside 'not' and first part should contains length sliding window.
2. Write a simple test with one kieSession.
3. Run test.

Actual results:
IndexOutOfBoundsException is thrown.

Expected results:
Test should pass.

Additional info:

Comment 5 Mark Proctor 2013-10-15 22:27:49 UTC
This is now fixed and cherry-picked to 6.0.x

Comment 6 Tomas David 2013-11-28 08:58:51 UTC
Verified on BRMS 6.0.0.ER5.