Importing XML without macros section shows error and doesn't remove macros

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 2.2.9
    • Component/s: Frontend (F)
    • None

      Importing XML without macros section shows error and doesn't remove moacros.

      Undefined index: macros [conf.import.php:130 ? CConfigurationImport->import() ? CConfigurationImport->gatherReferences() in /usr/share/zabbix/include/classes/import/CConfigurationImport.php:229]
      Invalid argument supplied for foreach() [conf.import.php:130 ? CConfigurationImport->import() ? CConfigurationImport->gatherReferences() in /usr/share/zabbix/include/classes/import/CConfigurationImport.php:229]
      Invalid argument supplied for foreach() [conf.import.php:130 ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CHostImporter->resolveHostReferences() in /usr/share/zabbix/include/classes/import/importers/CHostImporter.php:152]
      

      I tried the same for inventory. Inventory configurations are removed without errors while importing XML files that does't have <inventory/> section.

            Assignee:
            Unassigned
            Reporter:
            Kodai Terashima
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: