[ZBX-10752] configuration.export creates incorrect JSON Created: 2016 May 05  Updated: 2017 May 30  Resolved: 2016 May 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.2
Fix Version/s: 3.0.3rc1, 3.2.0alpha1

Type: Incident report Priority: Trivial
Reporter: vitalijs.cemeris (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: configuration, export, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Setup:
Create template A that is in two host groups (G1 and G2).
Create template B that is in host group G1.

Reproduce:
Export template A and B in JSON format.

Notice:
template A export

...
"groups":{"1":{"name":"G2"},"0":{"name":"G1"}}
...

template B export

...
"groups":[{"name":"G1"}]
...

Template A is exported incorrectly groups should be in array.



 Comments   
Comment by Alexander Vladishev [ 2016 May 06 ]

(1) No translation strings changed

vitalijs.cemeris CLOSED

Comment by Alexander Vladishev [ 2016 May 06 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-10752

Comment by Alexander Vladishev [ 2016 May 06 ]

A regression, caused by ZBX-9500.

Comment by vitalijs.cemeris (Inactive) [ 2016 May 09 ]

(2) Fixed export of host without proxy in JSON format. In r59974

sasha CLOSED

Comment by Alexander Vladishev [ 2016 May 11 ]

(3) Documentation:

sasha RESOLVED
vitalijs.cemeris CLOSED

Comment by Alexander Vladishev [ 2016 May 11 ]

Fixed in:

  • pre-3.0.3 r60035
  • pre-3.1.0 (trunk) r60036
Generated at Fri Apr 19 21:10:16 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.