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

"Undefined index" in map.update API call

    XMLWordPrintable

    Details

    • Team:
      Team B
    • Sprint:
      Sprint 47, Dec 2018, Sprint 48, Jan 2019
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      • send API request, witch cause circular dependency
      {
          "jsonrpc":"2.0",
          "method":"map.update",
          "params":{
              "sysmapid":"10001",
              "selements":[
                  {
                      "elementtype":"1",
                      "elements":[
                          {"sysmapid":"10001"}
                      ]
                  }
              ]
          },
          "id":0,
          "auth":"*************************"
      }

      Result:

      Undefined index: label [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CLocalApiClient->callMethod() -> call_user_func_array() -> CMap->update() -> CMap->validateUpdate() -> CMap->validateCircularReference() -> CConfigFile->{closure}() in include/classes/api/services/CMap.php:1488]

        Attachments

          Activity

            People

            Assignee:
            sasha Alexander Vladishev
            Reporter:
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: