[ZBX-25022] Master and dependent items cannot be copied from template to host Created: 2024 Aug 09  Updated: 2024 Dec 17  Resolved: 2024 Dec 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 7.0.3rc1, 7.2.0alpha1
Fix Version/s: 7.0.7rc1, 7.2.1rc1, 7.4.0alpha1

Type: Problem report Priority: Trivial
Reporter: Larisa Grigorjeva (Inactive) Assignee: Valdis Murzins
Resolution: Fixed Votes: 0
Labels: copy, dependant, items
Remaining Estimate: Not Specified
Time Spent: 5.25h
Original Estimate: Not Specified

Attachments: PNG File image-2024-08-09-17-57-33-287.png    
Team: Team B
Sprint: S24-W34/35, S24-W36/37, S24-W40/41, S24-W42/43, S24-W44/45, S24-W48/49
Story Points: 1

 Description   

Steps to reproduce:

  1. Mysql database
  2. Create two empty hosts HOST1 and HOST2, with Zabbix agent interface
  3. Create template with 3 items: 1 master item and 2 items dependent on it
  4. Select all template items, click Copy, select Target type Hosts
  5. Select HOST1 and HOST2 and click Copy
    Result:
    Undefined array key 10636 [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerCopyCreate->doAction() → CItemHelper::copy() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
    Undefined array key 10636 [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerCopyCreate->doAction() → CItemHelper::copy() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
    Invalid parameter "/3/master_itemid": a number is expected.
    

Works fine if copying only to one host.

Other way to reprroduce:
1. Select all items on the template "Linux by Zabbix agent"
2. Try to copy them to HOST1 and HOST2 together



 Comments   
Comment by Ivo Kurzemnieks [ 2024 Oct 29 ]

Fixed in development branch feature/ZBX-25022-7.0

Comment by Ivo Kurzemnieks [ 2024 Nov 25 ]

Fixed in:

Generated at Thu Apr 03 07:45:08 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.