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

Missing error handling for discovery rules when full clone template with web scenario item in graph prototype

XMLWordPrintable

    • Sprint 77 (Jun 2021), Sprint 78 (Jul 2021)
    • 0.5

      Steps to reproduce:

      1. Create template
      2. Add web scenario, discovery rule and item prototype
      3. Add Graph prototype
      4. Add item prototype and web scenario item to graph prototype (the same if add web scenario item to "Y axis MIN/MAX value" field)
      5. Full clone template
      6. Change name and save

      Result:
      multiple errors

      Undefined offset: 34106 [templates.php:647 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->copy() → CDiscoveryRule->copyDiscoveryRule() → CDiscoveryRule->copyGraphPrototypes() in include/classes/api/services/CDiscoveryRule.php:2416]
      Trying to access array offset on value of type null [templates.php:647 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CDiscoveryRule->copy() → CDiscoveryRule->copyDiscoveryRule() → CDiscoveryRule->copyGraphPrototypes() in include/classes/api/services/CDiscoveryRule.php:2417]
      Missing "itemid" field for item.
      

      Expected:
      no errors (works fine in host) or shouldn't allow to use web scenario items in graph prototype?

            jfreibergs Janis Freibergs
            natalja.zabbix Natalja Romancaka
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: