Defect #17163

Files assigned to a version can not be deleted if Issue Tracking module is disabled

Added by Michael Esemplare over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Attachments
Target version:2.5.3
Resolution:Fixed Affected version:2.4.5

Description

Log

Started DELETE "/attachments/1632" for 111.111.111.11 at 2014-06-12 00:37:20 +0000
Processing by AttachmentsController#destroy as HTML
  Parameters: {"authenticity_token"=>"", "id"=>"1632"}
  Current user: user
  Rendered common/error.html.erb within layouts/base (0.2ms)
Filter chain halted as :delete_authorize rendered or redirected

Steps to recreate:
  1. Go to Project Settings Tab
  2. Create Version if one does not exist
  3. Disable Issue Tracking
  4. Go to Files Tab
  5. Create new file and set version
  6. Try to delete file

Related to #9055 and #9576.

0001-Fixes-Files-assigned-to-a-version-can-not-be-deleted.patch Magnifier (1.68 KB) Michael Esemplare, 2014-08-15 03:59

Associated revisions

Revision 13390
Added by Jean-Philippe Lang over 3 years ago

Fixed: Files assigned to a version can not be deleted if Issue Tracking module is disabled (#17163).

Patch by Michael Esemplare.

History

#1 Updated by Toshi MARUYAMA over 3 years ago

  • Description updated (diff)

#2 Updated by Michael Esemplare over 3 years ago

Uploaded patch against trunk with updated test case.

#3 Updated by Toshi MARUYAMA over 3 years ago

  • Target version set to 2.5.3

#4 Updated by Jean-Philippe Lang over 3 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Patch committed in r13390, thanks.

#5 Updated by Jean-Philippe Lang over 3 years ago

  • Status changed from Resolved to Closed

Merged.

Also available in: Atom PDF