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

Bug 1105043

Summary: Guided rule editor cannot handle 'str' as a substring of fact pattern
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.2CC: kverlaen, rrajasek
Target Milestone: CR1   
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:12 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:
Attachments:
Description Flags
Guided rule reopened none

Description Jiri Locker 2014-06-05 09:29:27 UTC
Created attachment 902469 [details]
Guided rule reopened

Description of problem:
Guided rule editor incorrectly displays rules that have fact patterns containing 'str' substring.

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

How reproducible:
always

Steps to Reproduce:
1. In data modeler declare a fact with one field of String type and one field whose name contains 'str' of any type.
2. Create new guided rule and define something like:
   Room( decoration == "tapestry" , strangeField == 11 )
3. Save and close the rule. Reopen the rule.

Actual results:
After reopening the rule contains:
There is a Room with:
  decoration == "tape[---please choose ---][Choose...]
                     [---please choose ---][Choose...]

Expected results:
There is a Room with:
  decoration  [equal to][tapestry]
  strangeField[equal to][11      ]


Additional info:
Surprisingly, not a regression.

Comment 2 Mario Fusco 2014-06-11 10:57:50 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/4073a9603

Comment 3 Mario Fusco 2014-06-11 13:19:34 UTC
Cherry-picked to 6.1.x branch with https://github.com/droolsjbpm/drools/commit/aae610a61ee4d10df6f3ee381f4b80a90e848024

Comment 4 Mario Fusco 2014-06-11 13:40:24 UTC
Cherry-picked to 6.0.x branch with https://github.com/droolsjbpm/drools/commit/b2dccf2bfe769fb322e281e20b1d0b2960ed177d