-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.19rc1, 7.4.3rc1, 8.0.0alpha1 (master)
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:
- Open existing maintenance period form
- Enter description with maximum allowed symbol amount (65'535), BUT with no newline characters (enter's)
- Save the form, observe that it is allowed and the description is saved
- Open the saved form again
- Delete one character, add one newline character (press Enter once)
- 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.