Bug 1397026

Summary: Upper/lower cases when creating rules in BRE
Product: [Community] Bugzilla Reporter: Romana Cadova <rcadova>
Component: Internal ToolsAssignee: Matt Tyson 🤬 <mtyson>
Internal Tools sub component: Rules Engine QA Contact: tools-bugs <tools-bugs>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: huiwang, lmiksik, lsmid, mtyson, qgong, rcadova, tlavigne, yijli
Version: 4.4   
Target Milestone: 4.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-30 01:00:42 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:
Bug Depends On: 1406294    
Bug Blocks:    

Description Romana Cadova 2016-11-21 12:32:32 UTC
I just found out that when setting "contains any of the strings" in step 2 when creating a rule in BRE, the bug list finds all bugs no matter upper/lower cases, however, the rule would run only on the bugs where the upper/lower cases matches exactly. Is that the correct behaviour?

I was trying only in partner bz, not sure if the same happens in the prod. bz as I don't want to enable the rules before review.

As an example, see the rule "future_feature"

https://partner-bugzilla.redhat.com/page.cgi?id=ruleengine/details/index.html&rule_name=future_feature

The bug list:
https://partner-bugzilla.redhat.com/buglist.cgi?bug_id=871989%2C917702%2C963674%2C1066833%2C1112368%2C1283134%2C1301760%2C1302910%2C1304426%2C1322167%2C1349852%2C1367886%2C1367949&list_id=6435558

If I set "contains any of the strings" to RFE, the bug list finds bugs with "rfe, RFE, Rfe, etc." If I try to run the rule on these bugs, only the ones with "RFE" would change.

Here it works:
https://partner-bugzilla.redhat.com/show_bug.cgi?id=1367949
Here it doesn't:
https://partner-bugzilla.redhat.com/show_bug.cgi?id=1322167


Another rule to try:
https://partner-bugzilla.redhat.com/page.cgi?id=ruleengine/details/index.html&rule_name=rebase

Thanks.

Comment 1 Rony Gong 🔥 2016-11-21 12:55:40 UTC
QE could reprodue this on QE test server

Comment 2 Matt Tyson 🤬 2016-11-22 04:15:05 UTC
The following operations should be case insensitive

anywordssubstr - contains any of the strings
allwordssubstr - contains all of the strings
nowordssubstr  - contains none of the strings
substring      - contains the string
notsubstring   - does not contain the string

Comment 3 Rony Gong 🔥 2017-01-06 08:21:35 UTC
Tested on QA environment(5.0.3-rh21)
Result: Pass
Steps:
Now, it will hit bugs which summary including rfe or RFE

Comment 4 Rony Gong 🔥 2017-01-09 09:31:37 UTC
Tested on QA environment(4.4.12065-1.el6)
Result: Pass
Steps:
Now, it will hit bugs which summary including rfe or RFE

Comment 5 Matt Tyson 🤬 2017-01-30 01:00:42 UTC
This change is now live. If there are any issues, do not reopen this bug.                                                                                                           
Instead, you should create a new bug and reference this bug.