[ZBX-8104] User defined regular expression test function return incorrect result Created: 2014 Apr 16  Updated: 2017 May 30  Resolved: 2014 Apr 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.2.3
Fix Version/s: 2.2.4rc1, 2.3.0

Type: Incident report Priority: Trivial
Reporter: Kodai Terashima Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: frontend, globalregexps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File ZBX-8104.patch    
Issue Links:
Duplicate

 Description   

User defined regular expression test function return incorrect result with "Case sensitive" option and "Return is TRUE or FALSE" expression type.
"Case sensitive" option returns the opposite result.

Expression: crit|error|fatal|alert|emerg|panic

1.
Case sensitive: false
Test string: crit
Result: TRUE

2.
Case sensitive: false
Test string: Crit
Result: FALSE

3.
Case sensitive: true
Test string: crit
Result: TRUE

4.
Case sensitive: true
Test string: Crit
Result: TRUE



 Comments   
Comment by Oleksii Zagorskyi [ 2014 Apr 16 ]

Kodai, is this regression appeared in 2.2.3 ?

kodai It seems that 2.2.2 has same problem. I didn't check 2.2.1 or earlier.

Comment by Kodai Terashima [ 2014 Apr 16 ]

A patch uploaded.

Comment by Krists Krigers (Inactive) [ 2014 Apr 22 ]

Used provided patch.

Resolved in r44628, branch svn://svn.zabbix.com/branches/dev/ZBX-8104.

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 22 ]

Tested

Comment by Krists Krigers (Inactive) [ 2014 Apr 22 ]

Merged to 2.2 in r44658.
Merged to trunk in r44661.

Generated at Sat Apr 27 03:24:59 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.