Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18075

Runtime error when creating a host via API

    XMLWordPrintable

    Details

    • Team:
      Team D
    • Sprint:
      Sprint 66 (Jul 2020)
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      1. Execute API request to host.create method using such parameters:
        {
        	"host":"new host 1",
        	"groups":{
        		"groupid": "5"
        	},
        	"interfaces": [
        		{
        			"type": 1,
        			"main": 1,
        			"useip": 1,
        			"ip": "192.168.3.1",
        			"dns": "",
        			"port": "10050"
        		}
        	]
        }
        

      Observe:
      Runtime error in php log file:

      Illegal string offset 'groupid' in /var/www/html/master/ui/include/classes/api/services/CHost.php on line 1984
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              agriscenko Andrejs Griščenko
              Reporter:
              talbergs Mārtiņš Tālbergs (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: