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)
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated: