[ZBX-6329] Impossible create trigger Created: 2013 Feb 27  Updated: 2017 May 30  Resolved: 2013 Mar 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.16, 2.0.5, 2.1.0
Fix Version/s: 1.8.17rc1, 2.0.6rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Oleg Egorov (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: expressions, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Impossible create trigger with trigger expression:

{0:0.last(0)}

=0



 Comments   
Comment by Alexander Vladishev [ 2013 Mar 04 ]

The error is in parseFunctionMacro() function.

the code

!($host = $this->parseHost($j))
!($host = $this->parseItem($j))

should be written as :

null === ($host = $this->parseHost($j))
null === ($host = $this->parseItem($j))
Comment by Oleg Egorov (Inactive) [ 2013 Mar 05 ]

Same problem with host import:
Incorrect trigger expression. Check expression part starting from "

{0:testtest.last(0)}

=0".

Comment by Eduards Samersovs (Inactive) [ 2013 Mar 07 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-6329

Fixed also in development branch svn://svn.zabbix.com/branches/dev/ZBX-6329-trunk, with test case

Comment by Toms (Inactive) [ 2013 Mar 08 ]

TESTED

Comment by Eduards Samersovs (Inactive) [ 2013 Mar 11 ]

Fixed in versions pre-2.1.0 (beta) r34232, pre-2.0.6rc1 r34231, pre-1.8.17rc1 r34230

Generated at Fri Apr 19 22:52:49 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.