Project

General

Profile

task #49

Cannot delete a issue

Added by SpaceScum about 1 month ago. Updated about 1 month ago.

Status:
new
Priority:
bug
Assignee:
Target version:
Redmine version:
5.1.x

Description

If the issue reopen by plugin i cant delete that issue.
In logs I see:

I, [2024-03-26T06:03:49.459194 #26020]  INFO -- : [89752bd5-706f-4560-9712-36471bf87904] Started DELETE "/issues?back_url=%2Fissues&ids%5B%5D=35" for 192.208.2.67 at 2024-03-26 06:03:49 +0000
I, [2024-03-26T06:03:49.461915 #26020]  INFO -- : [89752bd5-706f-4560-9712-36471bf87904] Processing by IssuesController#destroy as HTML
I, [2024-03-26T06:03:49.462015 #26020]  INFO -- : [89752bd5-706f-4560-9712-36471bf87904]   Parameters: {"authenticity_token"=>"jHT64RgngtGuAI5RAvNakJsgiBPSapCMpJpyK9zysAAiC8M7kY1kvoCtcMqlTGRkjfeG2PafsG86Aj5+GL9Z1g==", "back_url"=>"/issues", "ids"=>["35"]}
I, [2024-03-26T06:03:49.470756 #26020]  INFO -- : [89752bd5-706f-4560-9712-36471bf87904]   Current user: Tikhomirov (id=5)
I, [2024-03-26T06:03:49.609879 #26020]  INFO -- : [89752bd5-706f-4560-9712-36471bf87904] Completed 409 Conflict in 148ms (ActiveRecord: 62.4ms | Allocations: 19420)
F, [2024-03-26T06:03:49.610853 #26020] FATAL -- : [89752bd5-706f-4560-9712-36471bf87904]   
[89752bd5-706f-4560-9712-36471bf87904] ActiveRecord::StaleObjectError (Attempted to destroy a stale object: Issue.):
[89752bd5-706f-4560-9712-36471bf87904]   
[89752bd5-706f-4560-9712-36471bf87904] app/models/issue.rb:262:in `rescue in destroy'
[89752bd5-706f-4560-9712-36471bf87904] app/models/issue.rb:250:in `destroy'
[89752bd5-706f-4560-9712-36471bf87904] app/controllers/issues_controller.rb:463:in `block in destroy'
[89752bd5-706f-4560-9712-36471bf87904] app/controllers/issues_controller.rb:461:in `each'
[89752bd5-706f-4560-9712-36471bf87904] app/controllers/issues_controller.rb:461:in `destroy'
[89752bd5-706f-4560-9712-36471bf87904] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

and empty html page.

I can delete the issue only when the plugin is removed and the host is rebooted.

What i can do with that?

image_2024-03-26_10-35-06.png (10.9 KB) image_2024-03-26_10-35-06.png SpaceScum, 2024-03-26 08:35
36

Token votes

History

#1 Updated by SpaceScum about 1 month ago

36

May be it's happening because the issue has a recursive link on the itself?

Also available in: Atom PDF