Discovery Action "uptime/downtime" condition doesn't allow a timespec-suffix

XMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.3, 5.0.10, 5.2.6, 5.4.0beta3
    • Component/s: Frontend (F)
    • Environment:
      CentOS 8, Nginx, Zabbix 5.0.3

      Steps to reproduce:

      1. Under Configuration, actions, select "Discovery Actions", then Create a new action
      2. Add a condition for "Uptime/downtime" "is less than" and:
      3. Type a timespec like "3w", and hit "Add"
      4. Back on the main condition screen, you'll see that the "3w" trimmed off the "w" turning your "3 weeks" into "3 seconds"

      Result:

      then

       

      --> Upon further inspection, this change seems to happen when the cursor moves away from the "Value" field - so it may be a validation problem instead of storage problem.   But either way, it means the user has to calculate the number of seconds in 3 weeks to get the desired outcome.

      Expected:
      I expect to see "3w" back on the main "Add" display.

       

            Assignee:
            Zabbix Development Team
            Reporter:
            David D
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: