[ZBX-13742] It is possible to create a trigger with an invalid expression Created: 2018 Apr 13  Updated: 2018 Apr 18  Resolved: 2018 Apr 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 3.0.16, 3.4.8, 4.0.0alpha5
Fix Version/s: 3.0.17rc1, 3.4.9rc1, 4.0.0alpha6, 4.0 (plan)

Type: Problem report Priority: Major
Reporter: Alexander Vladishev Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: expressions, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBXNEXT-1782 triggers should support greater than ... Closed
Team: Team B
Sprint: Sprint 31, Sprint 32
Story Points: 0.125

 Description   

Steps to reproduce:

  1. create trigger with invalid expression (the "not" operator is after the closing parenthesis); for example: ({Zabbix server:agent.ping.last()}) not 7

Result:
the trigger successfully added
Expected:
the trigger must be rejected with error messge



 Comments   
Comment by Alexander Vladishev [ 2018 Apr 18 ]

Causes an error message, returned by Zabbix server:

Cannot evaluate expression: unexpected token at "not 7".
Comment by Alexander Vladishev [ 2018 Apr 18 ]

(1) [F] No translation strings changed.

CLOSED

Comment by Alexander Vladishev [ 2018 Apr 18 ]

Fixed in:

  • 3.0.17rc1 r79883
  • 3.4.9rc1 r79884
  • 4.0.0alpha6 r79885
Generated at Thu Mar 28 16:40:19 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.