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

Clock widget: missing validation for the received time format

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 4.0.25, 5.0.4, 5.2.0beta1
    • Frontend (F)

      Problem description: No errors are thrown in case when the clock widget receives a timestamp with incorrect data format. Furthermore for some specific received values the widget starts showing time that is incorrect in respect to the timestamp sent to the widget.

      For example such problem may occur if the user sets "Time type" parameter to Host time and selects an item with key "system.localtime" in field "Item" instead of "system.localtime[local]".

       

      Steps to reproduce:

      1. Create a new dashboard
      2. Create 3 "Clock" widgets
        1. For the 1st widget set "Time type" to "Local time"
        2. For the 2nd widget set "Time type" to "Server time"
        3. For the 3rd widget set "Time type" to "Host time" and select "System local time" item (with key = "system.localtime") of Zabbix server in "Item" field
      3. Save the dashboard.

      Result: Time on the 1st and the 2nd widget is correct, but the 3rd widget displays some random time (04:03 in the gif) or is shown as disabled.

      Expected: the 3rd widget should return an error, because the timestamp format that was sent to the 3rd widget was incorrect.

       

      Example of a timestamp for which the widget shows some random time = 1601465006

      Example:

            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: