Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.7.1
-
Component/s: Staff Interface
-
Labels:None
Description
When creating a note, it's possible to get a white screen / error when providing a title length that exceeds the field limit. Presumably this is varchar 255. An error is logged:
general.ERROR: exception 'PDOException' with message 'SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'title' at row 1' in /home/user/public_html/vendors/minphp/db/src/PdoConnection.php:196...
We should be doing some validation and provide a proper error response if the field is too long.