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

PHP runtime errors when using {ITEM.VALUE} or {ITEM.LASTVALUE} macros with functions in the trigger url name field

XMLWordPrintable

    • Sprint 104 (Sep 2023)
    • 0.125

      Steps to reproduce:

      1. Create a trigger with URL name: "{{ITEM.VALUE}.regsub("^(.*)$", \1)}"
      2. Generate a problem with this trigger
      3. Go to Monitoring->Problems and click on the trigger name

      Result:

          Undefined array key "function" [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerMenuPopup->doAction() → CControllerMenuPopup::getMenuDataTrigger() → CMacrosResolverHelper::resolveTriggerUrlName() → CMacrosResolver->resolveTriggerUrlName() in include/classes/macros/CMacrosResolver.php:862]
          Undefined array key "parameters" [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerMenuPopup->doAction() → CControllerMenuPopup::getMenuDataTrigger() → CMacrosResolverHelper::resolveTriggerUrlName() → CMacrosResolver->resolveTriggerUrlName() in include/classes/macros/CMacrosResolver.php:863]

      Expected:
      A context menu should be opened.

            sasha Alexander Vladishev
            sasha Alexander Vladishev
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: