Defect #37257
open
Conflict when update sub-project of
Added by Xavier MARC about 3 years ago.
Updated about 2 months ago.
Description
I want to update the sub-project of my project. but when i click to save i have an 409 error (conflict).
I check in the log and i have this error :
ActiveRecord::StaleObjectError (Attempted to update a stale object: Issue.):
app/models/issue.rb:227:in `create_or_update'
app/models/issue.rb:1880:in `block in update_versions'
app/models/issue.rb:1874:in `update_versions'
app/models/issue.rb:1467:in `update_versions_from_hierarchy_change'
app/models/project.rb:1033:in `update_versions_from_hierarchy_change'
app/controllers/projects_controller.rb:216:in `update'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Thanks
Same problem here; we want to restructure our projects, but can't due to this:
redmine.company.tld ~ # tail -f /var/www/redmine/log/production.log
Started PATCH "/projects/<projectname>" for <IP removed> at 2025-07-02 13:46:00 +0200
Processing by ProjectsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"<token removed>", "project"=>{"name"=>"<projectname>", "description"=>"\r\n", "homepage"=>"", "is_public"=>"0", "parent_id"=>"986", "inherit_members"=>"1", "agile_color_attributes"=>{"color"=>""}, "enabled_module_names"=>["issue_tracking", "time_tracking", "repository", "gantt", "agile", "agile_backlog", "issue_templates", ""]}, "commit"=>"Speichern", "id"=>"addressbook"}
Current user: admin (id=52)
Completed 409 Conflict in 684ms (ActiveRecord: 158.9ms)
ActiveRecord::StaleObjectError (Attempted to update a stale object: Issue.):
app/models/issue.rb:227:in `create_or_update'
app/models/issue.rb:1880:in `block in update_versions'
app/models/issue.rb:1874:in `update_versions'
app/models/issue.rb:1467:in `update_versions_from_hierarchy_change'
app/models/project.rb:1022:in `update_versions_from_hierarchy_change'
app/controllers/projects_controller.rb:216:in `update'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Also available in: Atom
PDF