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

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

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.0.23, 5.0.2, 5.2.0alpha1
    • 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.

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

              Created:
              Updated:
              Resolved: