Actions
Defect #22119
closedError: Data too long for column 'notes' when copy paste pictures
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Affected version:
Description
I was copy&pasting some text with an Picture to the Issue notes. It gave me an awesome (working) preview, but a Redmine 500 error while saving (Internal error page was shown). My log-file reads:
ActiveRecord::StatementInvalid (Mysql2::Error: Data too long for column 'notes' at row 1: INSERT INTO `journals` (`journalized_id`, `journalized_type`, `user_id`, `notes`, `created_on`) VALUES (8127, 'Issue', 104, '<p><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAl0AAADuCAYAAAADQ7LZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAA... ...CYII=\" /></p>\r\n', '2016-02-29 10:11:41')): app/models/journal.rb:67:in `save' app/models/issue.rb:1659:in `create_journal' app/models/issue.rb:182:in `create_or_update' app/controllers/issues_controller.rb:487:in `block in save_issue_with_child_records' app/controllers/issues_controller.rb:475:in `save_issue_with_child_records' app/controllers/issues_controller.rb:180:in `update' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Related issues
Updated by Go MAEDA almost 9 years ago
What is the size of the text and what database do you use?
I guess the text is longer than 64KB and the database is MySQL.
Updated by Thomas Koch almost 9 years ago
Yes, Mysql (as the error shows as well)
I do not know the size of that image, but I guess it will be more the 64kB.
Updated by Go MAEDA almost 9 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
The size of issue.descpiption and journal.notes are limited to 64KB on MySQL for now.
Closing this issue as a duplicate of #19869.
Updated by Go MAEDA almost 9 years ago
- Is duplicate of Feature #19869: Consider increasing the size limit of description and note columns for tickets added
Updated by Thomas Koch almost 9 years ago
Updated by Marius BÄ‚LTEANU over 5 years ago
- Related to Feature #31921: Changes to properly support 4 byte characters (emoji) when database is MySQL added
Actions