[ZBX-24376] User macro is not resolved in the item test dialog if it is entered as a parameter of the item key Created: 2024 Apr 19  Updated: 2024 Jun 14  Resolved: 2024 Apr 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F), Server (S)
Affects Version/s: 7.0.0rc1
Fix Version/s: 7.0.0rc1, 7.0 (plan)

Type: Problem report Priority: Blocker
Reporter: Juliana Iljina Assignee: Janis Freibergs
Resolution: Fixed Votes: 0
Labels: itemtest, macro, regression
Remaining Estimate: Not Specified
Time Spent: 1h
Original Estimate: Not Specified

Attachments: PNG File z.png     PNG File za.png    
Issue Links:
Causes
caused by ZBXNEXT-8682 Item test should limit the returned v... Closed
Duplicate
is duplicated by ZBX-24359 Item test does not resolve user macro... Closed
Team: Team C
Sprint: S24-W16/17
Story Points: 0.25

 Description   

"Invalid third parameter." error appears in the item test dialogue, in case if user macro is used as a parameter of the item key.

Steps to reproduce:
1. Create a new host with user macro (f.e: {$TEST} and Value: maintenance) ;
2. Create a new item for this host with created macro in parameters (f.e: with Type "Zabbix internal" and Key zabbix[host,,{$TEST}]) ;
3. Test the item: press the "Test" button in the item configuration form and then press the "Get value and test" button.

Result:
"Invalid third parameter." error appears:

Expected:
Result should be retrieved.



 Comments   
Comment by Janis Freibergs [ 2024 Apr 23 ]

Fixed in development branch feature/ZBX-24376-6.5

Comment by Janis Freibergs [ 2024 Apr 26 ]

Fixed in 7.0.0rc1 (master) 9a31b83c4ea

Generated at Thu Aug 07 06:13:44 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.