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

Runtime error importing templates

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.2.0alpha1
    • API (A)
    • Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023)

      Steps to reproduce:

      The issue was discovered ** running "build template" job in Jenkins (for master branch).

      Jenkins job

      runtime error

      Runtime errors:
      Undefined offset: 39 [api_jsonrpc.php:63 -> CJsonRpc->execute() -> CLocalApiClient->callMethod() -> CConfiguration->import() -> CConfigurationImport->import() -> CConfigurationImport->processDiscoveryRules() -> CConfigurationImport->updateItemsWithDependency() -> CConfigFile->{closure}() in include/classes/import/CConfigurationImport.php:894]
      TypeError: Argument 1 passed to CImportReferencer::setDbItem() must be of the type string, null given, called in /home/jenkins/workspace/zabbix-6.2/build-templates/sources/ui/include/classes/import/CConfigurationImport.php on line 894 and defined in /home/jenkins/workspace/zabbix-6.2/build-templates/sources/ui/include/classes/import/CImportReferencer.php:749 

      manually you can repeat this steps:
      1) go to Configuration->Templates.
      2) Press import.
      3) import template - templates/app/proxmox/template_app_proxmox.yaml

      Result:
      Unexpected server error


      Expected:
      No errors

        1. Selection_999(1498).png
          201 kB
          Sergejs Maklakovs
        2. Selection_999(1499).png
          35 kB
          Sergejs Maklakovs

            zabbix.dev Zabbix Development Team
            smaklakovs Sergejs Maklakovs
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: