[ZBX-5927] Several subselects return hashes instead of arrays Created: 2012 Dec 03  Updated: 2017 May 30  Resolved: 2012 Dec 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Frontend (F)
Affects Version/s: 2.0.3, 2.1.0
Fix Version/s: 2.1.0

Type: Incident report Priority: Major
Reporter: Pavels Jelisejevs (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: api, iconmapping, maps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

iconmap.get selectMappings always returns a hash of mappings instead of an array. Map.get selectSelements and selectLinks returns a hash of objects if preservekeys is used; same thing for CMapeElement::getSelement() selectLinks. This behavior is incorrect, preservekeys must not affect subselects.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Dec 03 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-5927.

oleg.egorov CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2012 Dec 03 ]

CMapeElement::getSelement() selectUrls is not used at all, so I've removed it.

oleg.egorov selectUrls - exist, removed selectLinks in dev. branch

jelisejev Sorry, I've meant selectLinks.

oleg.egorov CLOSED

Comment by Oleg Egorov (Inactive) [ 2012 Dec 04 ]

Tested!

Comment by Pavels Jelisejevs (Inactive) [ 2012 Dec 04 ]

Fixed in 2.1.0 r31864.

CLOSED.

Comment by richlv [ 2013 May 29 ]

this resulted in a regression : ZBX-6635

Generated at Fri Apr 26 08:10:02 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.