Project

General

Profile

Cannot delete attached file and issue relations in 'Edit/new issue' window.

Added by Mateusz Krawczuk about 8 years ago

When I click on the trash icon next to uploaded file in the 'Edit/New issue' menu, a 'loading' modal window appears for a short while but nothing happens, the file/relation remains. Analogously, clicking on 'Remove relation' button has no effect - only 'loading' window appears for a second. Nothing is reported in the log file after these actions.

Patched attachments_controller.rb file according to this:
http://www.redmine.org/issues/14828
but it didn't help.

Please, any other ideas?
Redmine version 3.2.1.stable
Ruby version 2.2.1-p85 (2015-02-26) [x86_64-linux]
Rails version 4.2.5.2
Environment production
Database adapter Mysql2
SCM:
Mercurial 2.8.2
Git 1.9.1
Filesystem
Redmine plugins:
a_common_libs 2.1.5
global_roles 2.1.0
redmine_agile 1.4.0
redmine_banner 0.1.1
redmine_checklists 3.1.3
redmine_issue_tabs 1.1.1
redmine_issues_tree 0.0.7
redmine_mentions 0.0.1
redmine_theme_changer 0.2.0
redmine_timesheet_plugin 0.7.0


Replies (2)

RE: Cannot delete attached file and issue relations in 'Edit/new issue' window. - Added by Pavel Potcheptsov about 8 years ago

First of all revert back any changes you've made and remove all plugins (mirgate database and remove plugins' folders), reboot redmine and see how it goes.
If above doesn't work then start redmine with embedded Webrick server to ensure that there are no problems with web server that is used for handling redmine.

RE: Cannot delete attached file and issue relations in 'Edit/new issue' window. - Added by Mateusz Krawczuk about 8 years ago

More details:

Clicking the 'Remove relation' button causes to send such a request:
Request URL:https://redmine.appswithlove.net/relations/741
Request Method:DELETE
Status Code:501 Not Implemented

Clicking the trash icon (delete attachment) results in sending such a request to the server:
Request URL:https://redmine.appswithlove.net/attachments/3277.js?attachment_id=1
Request Method:DELETE
Status Code:501 Not Implemented

I never edited app/controllers/attachments_controller.rb nor app/controllers/issue_relations_controller.rb.

    (1-2/2)