Project

General

Profile

Actions

Defect #8546

closed

Can't Delete Project - StaleObjectError

Added by Josh Davidson over 13 years ago. Updated over 6 years ago.

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

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

  1. your database version - MySQL 5.1.56
  2. your Ruby version - 1.8.7 (i686-linux)
  3. your Rails version - 2.3.11

I copied an existing project to test a misbehaving plugin, and now I am unable to delete it. Redmine is complaining that an issue is stale (see below). I've tried logging out and back in and performing the action as a different administrator, but the result is the same. I delete the project and Redmine doesn't remove it.

Processing ProjectsController#destroy (for 127.0.0.1 at 2011-06-06 13:22:49) [DELETE]
  Parameters: {"commit"=>"Delete", "action"=>"destroy", "_method"=>"delete", "authenticity_token"=>"qwfGXcfHT+dqg0j9aS9k06/nFLTNYi1z7+YIZlGrB+c=", "id"=>"asttemp", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/destroy
Completed in 32ms (View: 28, DB: 1) | 200 OK [http://127.0.0.1/redmine/projects/asttemp]

Processing ProjectsController#destroy (for 127.0.0.1 at 2011-06-06 13:22:52) [DELETE]
  Parameters: {"commit"=>"Delete", "confirm"=>"1", "action"=>"destroy", "_method"=>"delete", "authenticity_token"=>"qwfGXcfHT+dqg0j9aS9k06/nFLTNYi1z7+YIZlGrB+c=", "id"=>"asttemp", "controller"=>"projects"}

ActiveRecord::StaleObjectError (Attempted to delete a stale object: Issue):
  (eval):4:in `destroy_without_callbacks'
  app/controllers/projects_controller.rb:234:in `destroy'
  config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Processing ProjectsController#show (for 127.0.0.1 at 2011-06-06 13:22:58) [GET]
  Parameters: {"action"=>"show", "id"=>"asttemp", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
Completed in 164ms (View: 116, DB: 12) | 200 OK [http://127.0.0.1/redmine/projects/asttemp]


Files

destroy_project_failure.txt (7.02 KB) destroy_project_failure.txt Redmine log Stéphane Gourichon, 2011-06-11 23:34
Actions

Also available in: Atom PDF