-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.4
-
Fix Version/s: 5.5
-
Component/s: Image Management
When using MySQL and picture with a long caption or headline, saving a document fails with:
org.nuxeo.ecm.core.api.ClientException: Failed to save session at org.nuxeo.ecm.core.api.AbstractSession.save(AbstractSession.java:1872) ... Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.core.api.DocumentException. message: org.nuxeo.ecm.core.storage.StorageException: Could not insert: INSERT INTO `picture` (`id`, `headline`, `genre`, `typage`, `origin`, `slugline`, `caption`, `dateline`, `byline`, `source`, `cropcoords`, `language`, `credit`, `subheadline`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ... Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: com.mysql.jdbc.MysqlDataTruncation. message: Data truncation: Data too long for column 'caption' at row 1 ...