-
Problem report
-
Resolution: Fixed
-
Trivial
-
6.0.0beta1
-
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
Steps to reproduce:
- Create template
- Open created template.
- 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 - Press update.
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.
- is duplicated by
-
ZBX-21332 Unexpected errors are observed when linking items from 2 templates that populate same inventory field to a host
- Closed