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

Max repetition count field is not validated correctly

XMLWordPrintable

      Steps to reproduce:

      1. Open some host or create new host
      2. Add SNMP interface
      3. Fill "Max repetition count" with 99999999999999999999
      4. Click Add or Update
        (Repeat the same with value 0).

      Result:
      See screenshot:

      Error message is completely useless:

      Incorrect arguments passed to function.
      

      1. There is no information about what field is filled incorrectly.
      2. There is no information which value interval is correct for this field.
      3. Entered value 99999999999999999999 was changed to 100000000000000000000

      Expected:
      1. There should be frontend validation for this field, for example "maxlength"=3, which is consistent with backend validation.
      2. Error message should be like this, for example:

      Max repetition count must be from 1 to 99.
      

            zabbix.dev Zabbix Development Team
            lgrigorjeva Larisa Grigorjeva
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: