ZABBIX BUGS AND ISSUES

excessive data returned to template.get

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.1.0
  • Component/s: API (A)
  • Labels:
    None
  • Environment:
    1.8.5rc1
  • Zabbix ID:
    RTF

Description

template.get returns excessive and confusing output of duplicate hostid+templateid values.

host.get request :

{"auth":"4e1863827e2068815f6bdcfbea290bb2","method":"host.get","id":19,"params":{},"jsonrpc":"2.0"}

{"jsonrpc":"2.0","result":[{"hostid":"10017"},{"hostid":"10054"},{"hostid":"10055"},{"hostid":"10056"},{"hostid":"10051"}],"id":19}

template.get request :

{"auth":"4e1863827e2068815f6bdcfbea290bb2","method":"template.get","id":20,"params":{},"jsonrpc":"2.0"}

{"jsonrpc":"2.0","result":[{"hostid":"10001","templateid":"10001"},{"hostid":"10002","templateid":"10002"},{"hostid":"10003","templateid":"10003"},... (trimmed)

should not.

Activity

Hide
Alexander Vladishev added a comment -

Stay reproducible in branches/2.0 r30280 (pre-2.0.3).

Show
Alexander Vladishev added a comment - Stay reproducible in branches/2.0 r30280 (pre-2.0.3).
Hide
Alexey Fukalov added a comment -

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3684

Show
Alexey Fukalov added a comment - dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3684
Hide
Pavels Jelisejevs added a comment - - edited

(1) Error when opening the link template pop up:

Undefined index: hostid [popup.php:643]

Alexey Fukalov RESOLVED

Pavels Jelisejevs CLOSED.

Show
Pavels Jelisejevs added a comment - - edited (1) Error when opening the link template pop up: Undefined index: hostid [popup.php:643] Alexey Fukalov RESOLVED Pavels Jelisejevs CLOSED.
Hide
Pavels Jelisejevs added a comment -

TESTED.

Show
Pavels Jelisejevs added a comment - TESTED.
Hide
Alexey Fukalov added a comment -

Fixed in pre-2.1.0 r30352

Show
Alexey Fukalov added a comment - Fixed in pre-2.1.0 r30352
Hide
richlv added a comment - - edited

(2) docs

Alexey Fukalov Where should i add docs about this change?

<richlv> http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_2.2 ?
er, fail. ignore the above
http://www.zabbix.com/documentation/2.2/manual/appendix/api/changes_2.0_-_2.2

Alexey Fukalov RESOLVED

<richlv> note that, as discussed, we should also have this documented in appropriate template.get page for 2.2. whether we copy whole tree or create these pages one by one, that's for you all to decide

Alexey Fukalov Change log should be enough, 2.2 will have new docs with correct return parameters.

<richlv> ok, let's hope the docs will be there - CLOSED

Show
richlv added a comment - - edited (2) docs Alexey Fukalov Where should i add docs about this change? <richlv> http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_2.2 ? er, fail. ignore the above http://www.zabbix.com/documentation/2.2/manual/appendix/api/changes_2.0_-_2.2 Alexey Fukalov RESOLVED <richlv> note that, as discussed, we should also have this documented in appropriate template.get page for 2.2. whether we copy whole tree or create these pages one by one, that's for you all to decide Alexey Fukalov Change log should be enough, 2.2 will have new docs with correct return parameters. <richlv> ok, let's hope the docs will be there - CLOSED
Hide
Alexander Vladishev added a comment - - edited

(3) import of the 1.8 templates is broken after the fix (the error occurs when the template already exists)

Undefined index: hostid [include/classes/import/CXmlImport18.php:1099]

Oleg Egorov FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-3684-trunk r31551

RESOLVED

Eduards Samersovs CLOSED

Show
Alexander Vladishev added a comment - - edited (3) import of the 1.8 templates is broken after the fix (the error occurs when the template already exists) Undefined index: hostid [include/classes/import/CXmlImport18.php:1099] Oleg Egorov FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-3684-trunk r31551 RESOLVED Eduards Samersovs CLOSED
Hide
Oleg Egorov added a comment - - edited

ZBX-5855 will be fixed in this issue

FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-3684-trunk r31551

RESOLVED

Eduards Samersovs CLOSED

Show
Oleg Egorov added a comment - - edited ZBX-5855 will be fixed in this issue FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-3684-trunk r31551 RESOLVED Eduards Samersovs CLOSED
Hide
Eduards Samersovs added a comment -

Tested!

Show
Eduards Samersovs added a comment - Tested!
Hide
Oleg Egorov added a comment -

FIXED in 2.0.4 r31620, 2.1.0 r31621
CLOSED

Show
Oleg Egorov added a comment - FIXED in 2.0.4 r31620, 2.1.0 r31621 CLOSED

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: