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

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 4.0.23, 5.0.2, 5.2.0alpha1
    • None
    • Frontend (F)
    • Team B

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: