Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41288

Limit maximum length for Rubrics fields

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 19.0, 20.0 [Tentative]
    • Fix Version/s: 19.0, 20.0 [Tentative]
    • Component/s: Rubrics
    • Labels:
      None
    • 19 status:
      Resolved
    • Test Plan:
      1. Create a new Rubric.
      2. Set a very long description to a Rating and save.
      3. Maximum can't be surpassed and description should be saved (reload the page to check).

      Description

      If you try to add a very long description to Rubrics/Ratings it will seem to be saved but then it will be lost when refreshing. A warning or error should be shown to the user when surpassing the maximum allowed.

      Error log:

      01-Feb-2019 02:29:53.433 ERROR [http-nio-20013-exec-2] org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions Data truncation: Data too long for column 'description' at row 1
      01-Feb-2019 02:29:53.470 ERROR [http-nio-20013-exec-2] org.sakaiproject.util.RequestFilter.doFilter Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: Error while committing the transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction
      org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.orm.jpa.JpaSystemException: Error while committing the transaction; nested exception is javax.persistence.RollbackException: Error while committing the transaction
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bergarvi Bernardo Garcia Vila
                Reporter:
                bergarvi Bernardo Garcia Vila
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code