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

Error message appears when Create/Update template with several templates.

    XMLWordPrintable

Details

    • Team C
    • Sprint 83 (Dec 2021), Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022)
    • 0.25

    Description

      Steps to reproduce:

      1. Create template
      2. Open created template.
      3. Add several template to "Templates". List of templates that is used to recreate this issue:
        Arista SNMP
        Apache Tomcat JMX
        Asterisk by HTTP
        APC UPS Symmetra RM SNMP
        Cisco ASAv SNMP
        Apache Kafka by JMX
      4. Press update.

      Result:

      Error message:

       Undefined offset: 0 [templates.php:270 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTemplate->update() → CTemplate->massUpdate() → CTemplate->massAdd() → CHostGeneral->massAdd() → CHostGeneral->link() → CItem->syncTemplates() → CItemGeneral->inherit() → CItemGeneral->_inherit() → CItem::validateInventoryLinks() in include/classes/api/services/CItem.php:1007]Trying to access array offset on value of type null [templates.php:270 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTemplate->update() → CTemplate->massUpdate() → CTemplate->massAdd() → CHostGeneral->massAdd() → CHostGeneral->link() → CItem->syncTemplates() → CItemGeneral->inherit() → CItemGeneral->_inherit() → CItem::validateInventoryLinks() in include/classes/api/services/CItem.php:1007]Two items ("System contact details" and "") cannot populate one host inventory field "Contact", this would lead to a conflict.

      Expected:
      No runtime error in error message. 

      Attachments

        Issue Links

          Activity

            People

              gcalenko Gregory Chalenko
              smaklakovs Sergejs Maklakovs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: