-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
Affects Version/s: 8.0.0alpha2
-
Component/s: Frontend (F)
-
Sprint candidates
-
1
Problem description: when you import a template that contains a trigger that does not have a recovery expression (quite common case) the following runtime error is observed:
Undefined array key "recovery_expression" [zabbix.php:17 -> require_once() -> ZBase->run() -> ZBase->processRequest() -> CController->run() -> CControllerPopupImportCompare->doAction() -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CConfiguration->importcompare() -> CConfigurationImportcompare->importcompare() -> CConfigurationImportcompare->compareByRules() -> CConfigurationImportcompare->compareByRules() -> CConfigurationImportcompare->compareByRules() -> CConfigurationImportcompare->compareByUniqueness() -> CConfigurationImportcompare::addUniqueIds() -> CConfigurationImportcompare::getUniqueData() -> CConfigFile->{closure}() in include/classes/import/CConfigurationImportcompare.php:480]
Steps to reproduce:
- Open the list of templates
- Create a template
- Create an item for this template
- Create a trigger for this item, but do not specify the Recovery expression
- Export the template
- Import the template
Result: the above runtime error is observed.
Expected: no runtime errors should be observed.