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

Runtime error importing templates

    XMLWordPrintable

Details

    • Team C
    • Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 93 (Oct 2022)
    • 1

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              jfreibergs Janis Freibergs
              smaklakovs Sergejs Maklakovs
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: