[ZBX-7736] testing for global regular expression of type "any character string is included" does not work Created: 2014 Jan 31  Updated: 2017 May 30  Resolved: 2014 Feb 06

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

Type: Incident report Priority: Minor
Reporter: Aleksandrs Saveljevs Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: globalregexps, regexps, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Open the form to create a global regular expression. There, create a subexpression "aaa,bbb,ccc" of type "Any character string included".

Now, switch to "Test" tab and test the expression with string "aaa". The expected results is "TRUE", whereas the frontend gives us "FALSE". Only when "aaa,bbb,ccc" is a substring of the string to test does it seem to give us a "TRUE" result.



 Comments   
Comment by Aleksandrs Saveljevs [ 2014 Jan 31 ]

This works in Zabbix 2.0, so it is a regression.

Comment by richlv [ 2014 Feb 01 ]

testing seems to have have stopped working in r29064 (at least with several php version i tested with), and 'any string' was broken in the first rev where testing restarted working

Comment by Ivo Kurzemnieks [ 2014 Feb 06 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-7736

Comment by Pavels Jelisejevs (Inactive) [ 2014 Feb 07 ]

TESTED.

Comment by Ivo Kurzemnieks [ 2014 Feb 12 ]

Fixed in pre-2.2.3rc1 r42559 and pre-2.3.0 (trunk) r42560

Generated at Thu Apr 25 09:49:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.