Project

General

Profile

Actions

Defect #15404

closed

Can't update issue

Added by jamon camisso over 10 years ago. Updated over 10 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

This is a migrated Redmine from Chiliproject. Create/copy/move issues works just fine. Updating an issue does not and results in a 500 error:

Development log shows the following:

Started PUT "/issues/11573" for 127.0.0.1 at Tue Nov 19 08:36:26 -0500 2013
Processing by IssuesController#update as HTML
  Parameters: {"issue"=>{"project_id"=>"139", "due_date"=>"", "private_notes"=>"0", "description"=>"snip snip snip", "estimated_hours"=>"", "tracker_id"=>"3", "priority_id"=>"7", "parent_issue_id"=>"", "is_private"=>"0", "assigned_to_id"=>"38", "start_date"=>"2013-11-19", "status_id"=>"2", "done_ratio"=>"0", "notes"=>"test", "lock_version"=>"13", "subject"=>"snip", "fixed_version_id"=>"110", "custom_field_values"=>{"5"=>"", "7"=>"", "8"=>""}}, "time_entry"=>{"hours"=>"", "comments"=>"", "activity_id"=>""}, "last_journal_id"=>"", "authenticity_token"=>"snipjustincase", "id"=>"11573", "utf8"=>"✓", "commit"=>"Submit"}

   (0.1ms)  SELECT MAX(`settings`.`updated_on`) AS max_id FROM `settings` 
  User Load (0.1ms)  SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`status` = 1 AND `users`.`id` = 38 LIMIT 1
  Current user: snip (id=38)
  Issue Load (0.3ms)  SELECT `issues`.* FROM `issues` WHERE `issues`.`id` = 11573 LIMIT 1
  Project Load (0.2ms)  SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 139 LIMIT 1
  EnabledModule Load (0.2ms)  SELECT name FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 139
  TimeEntryActivity Load (0.1ms)  SELECT `enumerations`.* FROM `enumerations` WHERE `enumerations`.`type` IN ('TimeEntryActivity') AND `enumerations`.`is_default` = 1 ORDER BY enumerations.position ASC LIMIT 1
Completed 500 Internal Server Error in 118ms

ActiveRecord::DangerousAttributeError (changes is defined by ActiveRecord):
  app/models/issue.rb:622:in `new'
  app/models/issue.rb:622:in `init_journal'
  app/controllers/issues_controller.rb:358:in `update_issue_from_params'
  app/controllers/issues_controller.rb:175:in `update'
Actions #1

Updated by jamon camisso over 10 years ago

Note, I had to run this MySQL to allow rake db:migrate task to complete:

ALTER TABLE journals CHANGE journaled_id journalized_id int(11);

Actions #2

Updated by Jean-Philippe Lang over 10 years ago

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

Sorry, no technical support here in the issue tracker.

Actions

Also available in: Atom PDF