[ZBX-9821] $1 in item names expanded incorrectly for item keys containing macros Created: 2015 Aug 26 Updated: 2017 May 30 Resolved: 2015 Nov 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.2.10 |
Fix Version/s: | 3.0.0alpha4 |
Type: | Incident report | Priority: | Minor |
Reporter: | Aleksandrs Saveljevs | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | items, macros, references | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Suppose we have an item with name "echo $1" and the following item key: echo[{$MACRO}] Suppose also that the value of the macro is "this,is,a,list". Then, server will show item name as "echo this,is,a,list", whereas frontend will show it as "echo this". The probable reason is that the server correctly quotes item arguments when expanding macros, yielding the following item key: echo["this,is,a,list"] However, the frontend apparently yields the following key after macro expansion, which is not correct: echo[this,is,a,list] Therefore, the frontend side should be fixed. |
Comments |
Comment by Alexander Vladishev [ 2015 Nov 03 ] |
Fixed with |