-
Problem report
-
Resolution: Fixed
-
Minor
-
3.0.24, 4.0.3, 4.2.0alpha1
-
Sprint 47, Dec 2018, Sprint 48, Jan 2019
-
0.125
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]