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

Ugly exception when saving fields with too large content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.1 M3
    • Old Core
    • None
    • Low
    • N/A
    • N/A

    Description

      It should either truncate the data, or show a pretty warning message, instead of the stack trace.

      Reproduction steps

      1. Login
      2. Go to the user profile
      3. edit the profile
      4. set a very long content in the company field (e.g, python3 -c 'print("a"*5000)') (the actual length depends on the database)
      5. click save

      Expected

      The user receive a nice message explaining that the company field content is too large.

      Actual

      An technical error is presented to the user, with no detail of the cause of the error.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sdumitriu Sergiu Dumitriu
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: