Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2985

There is no length validation on note titles

    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.

        Activity

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Sep/19

              Time Tracking

              Estimated:
              Original Estimate - 0 minutes
              0m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 10 minutes
              10m

                Agile