Submit new issue returns error 500
Closed
Submit new issue returns error 500
Created by: zeelax
Creating new issue with commit id '6318080738e900fdc317aed92d1155283ba07569' inserted in text returns 500. Log says:
Processing by Projects::IssuesController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"D7pMdDCUnD5/RE9LAruS1qVbI5UnaqNMdwksicDgeho=", "issue"=>{"title"=>"Ещё иссуе с обманом ;)", "assignee_id"=>"1", "milestone_id"=>"", "label_list"=>"bug", "description"=>"6318080738e900fdc317aed92d1155283ba07569"}, "project_id"=>"main/kolesa", "id"=>"844"}
Mysql2::Error: Out of range value for column 'noteable_id' at row 1: INSERT INTO `notes` (`author_id`, `commit_id`, `created_at`, `note`, `noteable_id`, `noteable_type`, `project_id`, `st_diff`, `system`, `updated_at`) VALUES (1, '6318080738e900fdc317aed92d1155283ba07569', '2014-02-14 05:58:57', '_mentioned in issue #844_', 6318080738, 'Commit', 13, NULL, 1, '2014-02-14 05:58:57')
Completed 500 Internal Server Error in 374ms
ActiveRecord::StatementInvalid (Mysql2::Error: Out of range value for column 'noteable_id' at row 1: INSERT INTO `notes` (`author_id`, `commit_id`, `created_at`, `note`, `noteable_id`, `noteable_type`, `project_id`, `st_diff`, `system`, `updated_at`) VALUES (1, '6318080738e900fdc317aed92d1155283ba07569', '2014-02-14 05:58:57', '_mentioned in issue #844_', 6318080738, 'Commit', 13, NULL, 1, '2014-02-14 05:58:57')):
app/models/note.rb:74:in `create_cross_reference_note'
app/models/concerns/mentionable.rb:74:in `block in create_cross_references!'
app/models/concerns/mentionable.rb:73:in `each'
app/models/concerns/mentionable.rb:73:in `create_cross_references!'
app/models/concerns/mentionable.rb:94:in `notice_added_references'
app/observers/issue_observer.rb:24:in `after_update'
app/controllers/projects/issues_controller.rb:76:in `update'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'
Please register or sign in to reply