[ZBX-11206] User macros with comma in context are incorrectly parsed inside trigger function parameters in calculated items Created: 2016 Sep 14  Updated: 2017 May 30  Resolved: 2016 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.0.5rc1, 3.2.1rc1, 3.4.0alpha1
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Glebs Ivanovskis (Inactive) Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: calculateditems, macrocontext, macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Documentation claims that user macro context containing comma does not need to be quoted. However, calculated item formula:

count(dummy.echo[{$ECHO}],10m,{$MACRO:context with , character})

results in error:

Cannot evaluate expression: "Cannot evaluate function "count(10m,{$MACRO:context with , character})": operator "character}" is not supported for function COUNT.".


 Comments   
Comment by Glebs Ivanovskis (Inactive) [ 2016 Sep 19 ]

Since it is not so critical and can be worked around by quoting and escaping I'm closing this issue. Mentioned that some improvement can be done as a side note in ZBXNEXT-3444.

Generated at Fri Mar 29 07:12:23 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.