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

Maintenance period description field allows to enter more symbols that defined in maxlength when a newline character is inserted

XMLWordPrintable

      It is possible to enter more symbols (an error is shown on form submit) in maintenance "Description" field than defined in maxlength attribute if any other character is replaced with newline character (Enter).

      Example: descriptionWithNewLineTooLong.mp4

      Steps to reproduce:

      1. Open existing maintenance period form
      2. Enter description with maximum allowed symbol amount (65'535), BUT with no newline characters (enter's)
      3. Save the form, observe that it is allowed and the description is saved
      4. Open the saved form again
      5. Delete one character, add one newline character (press Enter once)
      6. Try updating the form

      Result: error message "Invalid parameter "/1/description": value is too long." displayed, the form is not updated

      Expected: it should not be possible to enter more characters than defined in maxlength attribute of this field.

      Emojis like 😀 are only inserted, if description length is 2 symbols less than maximum.

            zabbix.dev Zabbix Development Team
            ssmildzina Sanija Smildzina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: