[ZBX-9017] readonly param "internal" can be set in hostgroup.create Created: 2014 Nov 10  Updated: 2017 May 30  Resolved: 2014 Nov 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.2.7
Fix Version/s: 2.2.8rc1, 2.4.3rc1, 2.5.0

Type: Incident report Priority: Major
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: hostgroups, validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

create a new hostgroup with hostgroup.create, pass internal=1 - group is created with internal flag set to 1, even though it is not chosen in administration -> general -> other - and that group can not be deleted now

api docs claim this property should be read only

https://www.zabbix.com/documentation/2.2/manual/api/reference/hostgroup/object



 Comments   
Comment by Arvids Godjuks (Inactive) [ 2014 Nov 13 ]

(1) Translation changed

Added strings:

  • Cannot set "%1$s" for host group "%2$s".
  • Cannot update "%1$s" for host group "%2$s".

sasha CLOSED

Comment by Arvids Godjuks (Inactive) [ 2014 Nov 13 ]

Fixed in branch svn://svn.zabbix.com/branches/dev/ZBX-9017

Comment by Alexander Vladishev [ 2014 Nov 20 ]

Successfully tested! Please take a look on my changes in r50709.

Comment by Arvids Godjuks (Inactive) [ 2014 Nov 25 ]

Merged to 2.2.8rc1, 2.4.5rc1 and 2.5.0 (trunk)

Comment by Alexander Vladishev [ 2014 Nov 25 ]

(3) 2.4 and trunk: "Undefined index" when updating a host group without name

Undefined index: name [hostgroups.php:93 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CHostGroup->update() in include/classes/api/services/CHostGroup.php:491]

arvids.godjuks RESOLVED in r50832 for 2.4 and r50833 for 2.5.0 (trunk)
Error sliped in due to manual patch applience between 2.2 to 2.4 (was fixed for 2.2 originaly)

sasha CLOSED

Comment by Alexander Vladishev [ 2014 Nov 25 ]

(4) Documentation changes:

arvids.godjuks RESOLVED

sasha CLOSED

Generated at Sat Apr 20 03:44:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.