Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15211

app within minutes fields - when data is too long, you don't get appropriate feedback

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 10.2, 10.3
    • App Within Minutes
    • None
    • Unknown

    Description

      When you use a short text field in created from App within Minutes, you are able to enter in a very long text string.

      However, when you go to save the record, you get an unhelpful error message about not being able to save the record and the following error appears in the log file:

      WARN o.h.u.JDBCExceptionReporter - SQL Error: 1406, SQLState: 22001
      ERROR o.h.u.JDBCExceptionReporter - Data truncation: Data too long for column 'XWS_VALUE' at row 1

      A better behaviour would be to either:

      a) check the length of these fields before submission to ensure the text isn't too long and won't cause a database error and notify the user which fields will have an issue, or
      b) if a database error occurs, to try to return a more useful error message as to why the record couldn't be saved.

      (at this point, when I cannot save a record, the first thing I do is check my string lengths)

      Attachments

        Activity

          People

            Unassigned Unassigned
            pdwalker Paul D. Walker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: