Undefined index in HostGroup API if trying to update hostgroup without groupid.

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: 2.1.2
    • Component/s: API (A)
    • None

      Notice: Undefined index: groupid in /home/zabbix/www/trunk/frontends/php/api/classes/CHostGroup.php on line 518

      {
      "jsonrpc": "2.0",
      "method": "hostgroup.update",
      "params":

      { "name": "a" }

      ,
      "id": 0,
      "auth": "5a3d801e3e54a43853b5b986e2097442"
      }

      Same issue can be found in other API classes..

      NOTE: This task must use new method checkObjectId() which is implemented in ZBXNEXT-1633

            Assignee:
            Unassigned
            Reporter:
            Eduards Samersovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: