Redesigning the get methods output parameter (ZBXNEXT-1485)

[ZBXNEXT-1505] Property array support for all API get methods Created: 2012 Nov 09  Updated: 2017 May 31  Resolved: 2012 Nov 23

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A)
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Change Request (Sub-task) Priority: Major
Reporter: Pavels Jelisejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4534 undocumented host.get selectDHosts an... Closed
is duplicated by ZBX-5157 Discovery-related parameters for host... Closed

 Description   

All API get methods must support requesting specific object properties by passing an array of property names to the output parameter.

Due to some get methods bugs, additional properties may be returned. This problem will not be addressed in this issue.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Nov 13 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBXNEXT-1505.

I haven't fixed the history API, it should be done in a separate issue ZBX-5169.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Nov 20 ]

Available in 2.1.0 r31509.

CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Nov 20 ]

(1) Errors on the item configuration page:

Undefined index: items [ses/CItem.php:622]
Invalid argument supplied for foreach() [ses/CItem.php:624]

jelisejev RESOLVED in svn://svn.zabbix.com/branches/dev/ZBXNEXT-1505.
Eduards CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Nov 20 ]

(2) Errors on the application configuration page when all hosts are selected:

Undefined index: host [views/configuration.application.list.php:70]

jelisejev RESOLVED.
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Nov 22 ]

(3) Latest data page:
reset() expects parameter 1 to be array, null given [items.inc.php:526]
reset() expects parameter 1 to be array, null given [items.inc.php:527]

jelisejev This has been fixed in ZBXNEXT-20. CLOSED.

Comment by Eduards Samersovs (Inactive) [ 2012 Nov 22 ]

(4) Application column in Item configuration list page is always empty.

jelisejev RESOLVED.
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Nov 23 ]

(5) Error in Item popup:
reset() expects parameter 1 to be array, null given [include/items.inc.php:522]

jelisejev Same as (3). CLOSED.

Eduards Note, same lines was modified in ZBX-5684, after synchronization must be re-tested.

jelisejev Than it will have to be resolved when merging ZBX-5684, it doesn't affect this issue.

Comment by Eduards Samersovs (Inactive) [ 2012 Nov 23 ]

(6) In item prototype list page in event then some items are with applications:

Undefined index: name [items.inc.php:584]
Undefined index: itemid [views/configuration.item.prototype.list.php:70]
Undefined index: status [views/configuration.item.prototype.list.php:72]
Undefined index: itemid [views/configuration.item.prototype.list.php:72]
Undefined index: status [views/configuration.item.prototype.list.php:73]
Undefined index: status [views/configuration.item.prototype.list.php:73]
Undefined index: itemid [views/configuration.item.prototype.list.php:90]
Undefined index: itemid [views/configuration.item.prototype.list.php:90]
Undefined index: key_ [views/configuration.item.prototype.list.php:92]
Undefined index: delay [views/configuration.item.prototype.list.php:93]
Undefined index: history [views/configuration.item.prototype.list.php:94]
Undefined index: value_type [views/configuration.item.prototype.list.php:95]
Undefined index: trends [views/configuration.item.prototype.list.php:95]
Undefined index: type [views/configuration.item.prototype.list.php:96]

jelisejev RESOLVED.
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Nov 23 ]

Tested

Comment by Pavels Jelisejevs (Inactive) [ 2012 Nov 23 ]

Fixed in 2.1.0 r31662.

CLOSED.

Comment by richlv [ 2012 Nov 28 ]

this resulted in a regression : ZBX-5906

Generated at Fri Feb 28 09:22:31 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.