[ZBX-4586] Incorrect application on cloned item Created: 2012 Jan 26  Updated: 2017 May 30  Resolved: 2012 Jan 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 1.8.10, 1.9.8 (beta)
Fix Version/s: 1.8.11, 1.9.9 (beta)

Type: Incident report Priority: Blocker
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: applications, cloning, items
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File screenshot-1.jpg     JPEG File screenshot-2.jpg     JPEG File screenshot-3.jpg     JPEG File screenshot-4.jpg     JPEG File screenshot-5.jpg    
Issue Links:
Duplicate

 Description   

– Posted by Kodai Terashima –

I confirmed this issue.

1. open item configuration screen (specific item)
2. press "clone" (screenshot-1)
3. change "Host" (screenshot-2), and save
4. both of origial item and copied item are same host in [Monitoring]->[Latest Data] screen.

  • This problem is occurred when original item has application.
  • In configuration screen, copied item don't have any problem, only in latest data screen has problem.
  • if we copy same item using bottom of item list (mass update function), this problem is not occurred.


 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 27 ]

In the trunk such items are not displayed on Latest Data page at all.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 27 ]

Fixed for 1.8 in /branches/dev/ZBX-4586.

RESOLVED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 31 ]

Added item's application validation to the Item.update and Item.create API methods.

Comment by Alexander Vladishev [ 2012 Jan 31 ]

Successfully tested!

Please review my changes in r25102.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 31 ]

Merged to 1.8 r25112.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jan 31 ]

My mistake, it seems that cloning works correctly in the trunk, but I've added the same application validation I've implemented in 1.8. It's available in /branches/dev/ZBX-4586-trunk.

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(1) A 'host' field is not used
class.citemgeneral.php:119,133

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(2) class.citemgeneral.php:284 An error message violate coding guidelines.

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Feb 01 ]

(3) Errors, when creating new item with applications:

  • in_array() expects parameter 2 to be array, null given [api/classes/class.citemgeneral.php:283]
  • Undefined index: name [api/classes/class.citemgeneral.php:284]
  • Application with ID "292" is not available on host "" [CItem.create -> CItem.checkInput -> CItemGeneral.checkInput]

<pavels> RESOLVED.
<Sasha> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Feb 01 ]

Merged to trunk r25140.

CLOSED.

Generated at Fri Apr 19 19:17:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.