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

"Undefined index" in configuration.import API call

    Details

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

      Description

      Steps to reproduce:

      • send API call through JSON RPC
        {"jsonrpc":"2.0","method":"configuration.import","params":{"format":"xml","rules":{"groups":{"createMissing":true}},"source":"<?xml version=\"1.0\" encodin
        g=\"UTF-8\"?>\n\t\t\t\t\t\t\t\t<zabbix_export>\n\t\t\t\t\t\t\t\t<version>3.2<\/version>\n\t\t\t\t\t\t\t\t<date>2016-12-09T07:12:45Z<\/date>\n\t\t\t\t\t\t\t\t<groups>\n\t\t\t\t\t\
        t\t\t\t<group>\n\t\t\t\t\t\t\t\t\t\t<name>API host group xml import<\/name>\n\t\t\t\t\t\t\t\t\t<\/group>\n\t\t\t\t\t\t\t\t<\/groups>\n\t\t\t\t\t\t\t\t<\/zabbix_export>"},"id":0,"
        auth":"a98b931391ff96a10d7ec190ba7de5a6"}

      Result:

      Undefined index: type [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CLocalApiClient->callMethod() -> call_user_func_array() -> CConfiguration->import() -> CConfigurat
      ionImport->import() -> CConfigurationImport->processImages() -> CConfigFile->{closure}() in include/classes/import/CConfigurationImport.php:1638]

        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: