Project

General

Profile

Actions

Defect #24006

closed

Add character limitation on description field for MySQL

Defect #24006: Add character limitation on description field for MySQL

Added by Helder Manuel Torres Vieira about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Resolution:
Fixed
Affected version:

Description

Defect Description

On the actual version as in the las trunk, when trying to create a new description with more than 65536 characters, Redmine answers with an error 500.

This happens when the adapter ActiveRecord of MySQL is used, as the field description is of type :text and the maximum limit that it accepts is 65536 as i explain on the next link: https://www.packtpub.com/books/content/working-rails-%E2%80%93-activerecord-migrations-models-scaffolding-and-database-completion

With this patch this problem is solved as it adds a validation in case of the adapter being MySQL.

Attached Screenshots:


Files

mysql_2.png (26.6 KB) mysql_2.png Helder Manuel Torres Vieira, 2016-10-05 20:13
mysql_1.png (183 KB) mysql_1.png Helder Manuel Torres Vieira, 2016-10-05 20:13
mysql_3.png (254 KB) mysql_3.png Helder Manuel Torres Vieira, 2016-10-05 20:13
mysql_4.png (242 KB) mysql_4.png Helder Manuel Torres Vieira, 2016-10-05 20:13
add_description_limit_mysql_adapter.diff (666 Bytes) add_description_limit_mysql_adapter.diff Helder Manuel Torres Vieira, 2016-10-05 20:14

Related issues 2 (0 open — 2 closed)

Related to Redmine - Feature #19869: Consider increasing the size limit of description and note columns for ticketsClosedActions
Related to Redmine - Defect #20127: The description column in the issues table is too short (MySQL)ClosedJean-Philippe LangActions

Updated by Toshi MARUYAMA about 10 years ago Actions #1

  • Related to Feature #19869: Consider increasing the size limit of description and note columns for tickets added

Updated by Jean-Philippe Lang about 10 years ago Actions #2

I'd rather increase the size of the description column for Mysql (as it was already done for wiki pages) in order to have the same behaviour as other DBMS. I'm assigning #20127 to 3.4.0.

Updated by Go MAEDA about 10 years ago Actions #3

  • Related to Defect #20127: The description column in the issues table is too short (MySQL) added

Updated by Go MAEDA about 10 years ago Actions #4

  • Status changed from New to Closed
  • Resolution set to Fixed

Resolved in r15905 (#20127).

Actions

Also available in: PDF Atom