Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-6120

Attachments truncated to 64k in MySQL database storage

XMLWordPrintable

      By default, Hibernate uses a BLOB type (limited to 64 KB) instead of the LONGBLOB type (limited to 2 GB). When migrating attachments to the database in Confluence 2.2, they get truncated to 64 KB without an error.

      Two things we should do:

      • use the LONGBLOB type in MySQL for attachment storage
      • use the 'Traditional' SQL mode in MySQL so errors when writing data are raised as errors rather than silently dropped.

      http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

              Unassigned Unassigned
              matt@atlassian.com Matt Ryall
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: