[ZBX-3053] complex item keys break trigger expression parsing Created: 2010 Sep 28  Updated: 2017 May 30  Resolved: 2012 Jul 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: 2.0.2rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

full expression that breaks trigger parsing :

{A Test Host 2:a.last(0)}

=0&

{A Test Host 2:a[].last(0)}

=0&

{A Test Host 2:a,.last(0)}

=0&{A Test Host 2:a,`!@#$%&()=[]{}|;:'",<.>/?.last(0)}=0&{A Test Host 2:a[,`!@#$%&()=[]{}|;:'",<.>/?].last(0)}=0

Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' .last(0)}=0&{A Test Host 2:a,`!@#$%&()=[]{}|;:'",<.>/?.last(0)}=0&{A Test Host 2:a[,`!@#$%&()=[]{}|;:'",<.>/?].last(0)}=0 '
Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' >/?.last(0)}=0&{A Test Host 2:a[,`~!@#$%^&*()-_=+[]{}|;:'",<.>/?].last(0)}=0 '
Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' `!@#$%&()=[]{}|;:'",<.>/?.last(0)}=0&{A Test Host 2:a[,`!@#$%&()=[]{}|;:'",<.>/?].last(0)}=0 '
Unnecessary symbols detected: Check expression part starting from ' {}|;:'",<.>/?].last(0)}=0 '
Host key does not exist. Check expression part starting from ' :a[,`~!@#$%^&*()-_=+[]{}|;:'",<.>/?].last(0)}=0 '
Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' '",<.>/?].last(0)}=0 '
Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' >/?].last(0)}=0 '
Not allowed symbols or sequence of symbols in expression element detected: Check expression part starting from ' <.>/?].last(0)}=0 '
Trigger [test-a ]: cannot create



 Comments   
Comment by richlv [ 2010 Sep 28 ]

also fails for :

{A Test Host 2:run[cat something | cut -d\" -f1].last(0)}

=0&

{A Test Host 2:b,+.last(0)}

=0

Comment by Alexander Vladishev [ 2012 Feb 20 ]

Still reproducible in r25483.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 05 ]

Most of the item keys used in the expressions are invalid in 2.0. The others are saved correctly.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 05 ]

(1) Item with the key "a[,`~!@#$%^&*()-_=+,"[]",{}|;:","",<.>/?]" fails when testing a trigger expression in the expression constructor, even when the item exists.

<pavels> It turned out to be a simple decoding error. RESOLVED.

<Vedmak> When try to test trigger with this item some errors are shown.

<pavels> RESOLVED.

<Vedmak> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 06 ]

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

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 09 ]

Fixed in 2.0.2rc1 r28760 and 2.1.0 r28761.

CLOSED.

Generated at Tue Apr 23 12:18:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.