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

validate tr_events.php arguments, do not display invalid data

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • None
    • Frontend (F)

      Passing the event ID (stale/old or wrong) to /tr_events.php?triggerid=<DISABLED TRIGGER ID>&eventid=<STALE/OLD EVENT ID> will cause errors to be reported (bottom of the page) and incorrect event details to be shown.


      Bottom of the page error output (v2.2.4):

      array_merge(): Argument #2 is not an array [tr_events.php:112 ? make_event_details() ? array_merge() in /usr/share/zabbix/include/events.inc.php:182]
      Argument 1 passed to CMacrosResolverHelper::resolveEventDescription() must be an array, null given, called in /usr/share/zabbix/include/events.inc.php on line 182 and defined [tr_events.php:112 ? make_event_details() ? CMacrosResolverHelper::resolveEventDescription() in /usr/share/zabbix/include/classes/macros/CMacrosResolverHelper.php:329]
      Undefined index: acknowledged [tr_events.php:112 ? make_event_details() ? getEventAckState() in /usr/share/zabbix/include/events.inc.php:361]
      Undefined index: eventid [tr_events.php:112 ? make_event_details() ? getEventAckState() in /usr/share/zabbix/include/events.inc.php:362]
      Undefined index: objectid [tr_events.php:112 ? make_event_details() ? getEventAckState() in /usr/share/zabbix/include/events.inc.php:362]
      Invalid argument supplied for foreach() [tr_events.php:126 ? get_action_msgs_for_event() in /usr/share/zabbix/include/actions.inc.php:838]
      Invalid argument supplied for foreach() [tr_events.php:131 ? get_action_cmds_for_event() in /usr/share/zabbix/include/actions.inc.php:914]
      

        1. Selection_045.png
          Selection_045.png
          120 kB
        2. Selection_046.png
          Selection_046.png
          114 kB
        3. Selection_047.png
          Selection_047.png
          64 kB

            zabbix.dev Zabbix Development Team
            chris.christensen Chris Christensen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: