Project

General

Profile

Cannot delete attachments

Added by Ivan Cenov about 12 years ago

Redmine 1.3.1
Mongrel 1.5.0

Added plugins:

projects_tree_view
redmine_code_review
redmine_favourite_projects
redmine_lightbox
redmine_local_avatars
redmine_pastebin
redmine_theme_changer
redmine_wiki_gchart_formula
redmine_wiki_notes
redmine_xls_export

I noted that I cannot delete attachments to wiki pages and issues. Trying to delete an attachment file results in

Processing AttachmentsController#97 (for 192.168.20.1 at 2012-02-12 21:30:52) [POST]
  Parameters: {"action"=>"97", "authenticity_token"=>"iozwr6SpkyOFhij5hbZH5ldp3+9bck8uXdMBVuiPxrw=", "controller"=>"attachments"}
Rendering template within layouts/base
Rendering common/error (404)
Filter chain halted as [:find_project] rendered_or_redirected.
Completed in 188ms (View: 188, DB: 0) | 404 Not Found [http://redmine.mycompany.com/attachments/97]
Nevertheless, the attached files may be viewed, downloaded e tc.
This error does not arise in current trunk of Redmine (r8890).
Some hints?
How to start Redmine without plugins to test the situation? Is it enough just to move the plugins outside Redmine for a while? Will the database remain not damaged?

P.S. I was able to delete attachments by directly accessing the database via MySQL Query Browser (removed entries from attachments table) and deleted physically the files from files folder.


Replies (1)

RE: Cannot delete attachments - Added by Ivan Cenov about 12 years ago

I have discovered now: It is not Redmine, it is redmine_lightbox plugin that prevents deleting attachments.

    (1-1/1)