Project

General

Profile

Actions

Feature #1506

closed

Add title length note and error info when creating project or creating news

Added by Chaoqun Zou over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2008-06-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I have encountered several times that there was none error info if the news title is too long, and the page would displayed a rails exception.

For example:

ActiveRecord::StatementInvalid in NewsController#new 
Mysql::Error: Data too long for column 'title' at row 1: INSERT INTO `news` (`created_on`, `project_id`, `title`, `description`, `summary`, `author_id`, `comments_count`) VALUES('2008-06-20 10:24:15', 3, 'the very long title that will cause exception', 'the news', 22, 0)
RAILS_ROOT: redmine
Application Trace | Framework Trace | Full Trace 
ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log'
ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:281:in `execute'

And this will confuse the users who are not a developer.

So, I think it will be greate to add a length limit note on the creating page, and give out an error info rather than directly display the rails exception page.

Actions

Also available in: Atom PDF