Text/Note/Annotation Maxlength rule is unnecessary
Bug #1742590 reported by
Ghada El-Zoghbi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Lisa Seeto |
Bug Description
Mahara: 17.10.1
OS: Ubuntu 16.04
DB: Postgres
Browser: FF
When inserting a base-64 encoded image into a comment on a form, the user is presented with the following error:
'This field must be 8192 characters long.'
This rule validation is not really required because the DB field that it inserting into is a 'Text' type. Which basically means it's almost unlimited.
Postgres 7.1+ does have an upper limit at 1 Gb for a Text field. Mahara supports Postgres 9+.
I do think it's safe to remove the maxlength rule for the Text, Note and Annoation fields.
Please let me know your thoughts.
Changed in mahara: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 18.04.0 |
Changed in mahara: | |
milestone: | 18.04.0 → 18.10.0 |
Changed in mahara: | |
assignee: | nobody → Lisa Seeto (lisaseeto) |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Invalid |
status: | Invalid → In Progress |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Update:
Robert L. has dug around a bit further. These limits were put in place for this bug:
* https:/ /bugs.launchpad .net/mahara/ +bug/758235
commit: 71935fe8689d8f5 0fa7dfc09070eef cd5bcbcfd3
It was to mitigate time out issues with large data inserted into the pages.
Need to think on this further.