Undefined index error trying to import host with item that refers to nonexistent host interface.

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 4.0.23, 5.0.2, 5.2.0alpha1
    • Component/s: Frontend (F)

      Steps to reproduce:

      1. Create host with interface
      2. Add item with type Zabbix Agent
      3. Export host
      4. Change item interface reference to nonexisting in xml file
      5. Import file

      Result:

      Undefined index: if2 [conf.import.php:166 -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CConfiguration->import() -> CConfigurationImport->import() -> CConfigurationImport->processItems() -> CConfigFile->{closure}() in include/classes/import/CConfigurationImport.php:743] 

      Expected:
      Error message "No interface found." with no error before.

            Assignee:
            Unassigned
            Reporter:
            Miks Kronkalns
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: