The 'Undefined array key "recovery_expression"' runtime error is observed when importing a template that has a trigger with not defined recovery expression

XMLWordPrintable

    • 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:

      1. Open the list of templates
      2. Create a template
      3. Create an item for this template
      4. Create a trigger for this item, but do not specify the Recovery expression
      5. Export the template
      6. Import the template

      Result: the above runtime error is observed.
      Expected: no runtime errors should be observed.

            Assignee:
            Andrejs Verza
            Reporter:
            Sergejs Olonkins
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: