[ZBX-11354] The item.update API method resets application in the parent template. Created: 2016 Oct 12  Updated: 2017 May 30  Resolved: 2016 Dec 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.5
Fix Version/s: 2.2.17rc1, 3.0.7rc1, 3.2.3rc1, 3.4.0alpha1

Type: Incident report Priority: Major
Reporter: Oleg Ivanivskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: applications, item
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

The item.update API method resets application in the parent template. How to reproduce:

  • use default "Template App Zabbix Agent" and "Template OS Windows". "Template App Zabbix Agent" is linked to "Template OS Windows".
  • update application for "Agent ping" item in "Template OS Windows" (e.g. use "Zabbix agent" and add "Test")
  • change update interval for "Agent ping" item in "Template App Zabbix Agent"
  • check application for "Agent ping" item in "Template OS Windows". "Test" application will disappear.

Debug:

item.update [items.php:511]

Parameters:
Array
(
    [delay] => 3600
    [snmpv3_securitylevel] => 
    [authtype] => 
    [applications] => Array
        (
            [0] => 206
        )

    [itemid] => 22232
)

Cannot reproduce in 2.4 or 3.2.



 Comments   
Comment by Ivo Kurzemnieks [ 2016 Nov 21 ]

(1) No translation string changes.

gunarspujats CLOSED

Comment by Ivo Kurzemnieks [ 2016 Nov 21 ]

RESOLVED for 2.2 in svn://svn.zabbix.com/branches/dev/ZBX-11354

Comment by Natalja Romancaka [ 2016 Nov 22 ]

(2) the same incorrect behavior for Item prototypes

iivs RESOLVED in r64092

natalja.zabbix ui tested

gunarspujats CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Nov 30 ]

Tested

Comment by Ivo Kurzemnieks [ 2016 Dec 09 ]

I was able to reproduce this problem on 2.4, but I assume we're not implementing this fix in 2.4 branch. Unless there is a specific request. However, this problem can be reproduced on 3.2 branch and trunk with item prototypes. Also since 3.0 we have application prototypes.

Comment by Ivo Kurzemnieks [ 2016 Dec 09 ]

(3) RESOLVED for 3.0 in svn://svn.zabbix.com/branches/dev/ZBX-11354-30

gunarspujats Item prototypes still have this issue

iivs RESOLVED in r64421

gunarspujats CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Dec 14 ]

Tested

Comment by Ivo Kurzemnieks [ 2016 Dec 16 ]

Here is what has been fixed:

  • 2.2,17rc1 When editing a templated item and item prototype, the application list will no longer reset upon update;
  • 3.0.7rc1 When editing a templated item and item prototype, the application and application prototype lists will no longer reset upon update;
  • 3.2.3rc1 When editing a templated item prototype, the application and application prototype lists will no longer reset upon update;
  • 3.3.0 (trunk) When editing a templated item prototype, the application and application prototype lists will no longer reset upon update.

Fixed in:

  • pre-2.2.17rc1 r64501
  • pre-3.0.7rc1 r64503
  • pre-3.2.3rc1 r64504
  • pre-3.3.0 (trunk) r64506
Generated at Wed Apr 24 22:42:40 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.