Defect #8089
closedError trying to delete XML attachment
0%
Description
When I try to delete a XML attachment, I receive an internal error (redmine 500 error). From the log, I got this:
Errno::EACCES (Permission denied - C:/webserver/Redmine/files/110322161851_file.xml): app/models/attachment.rb:96:in `delete' app/models/attachment.rb:96:in `after_destroy' app/controllers/attachments_controller.rb:51:in `destroy' Rendering C:/webserver/Redmine/public/500.html (500 Internal Server Error)
I can upload and delete any other file type, that just happens with XML.
Steps to reproduce:
1. On the tab "Documents", create a new document
2. Fill the information, attach a XML file and save.
3. Try to delete the XML file by clicking on the trash bin icon.
Updated by Jean-Philippe Lang over 13 years ago
I can't reproduce either.
The error show that your Redmine instance is not allowed to delete the file on the disk.
Updated by Cassiano Monteiro over 13 years ago
This is strange, because that happened only with XML files. But now I tried again, and it worked. Anyways, we can discard this issue.
Updated by Etienne Massip over 13 years ago
- Status changed from New to Closed
- Resolution set to Invalid
Updated by Cassiano Monteiro about 13 years ago
I had the same problem again, but now with a htm file. And same error on the log, about permissions. But then I logged with a different Redmine user, and it worked. How come?
Updated by Etienne Massip about 13 years ago
Could be locked by another process ?
Updated by Cassiano Monteiro about 13 years ago
I have no clue... This computer is acting only as Redmine server, nothing else... I got 3 Mongrel services running with Apache on Windows XP x64. It also has a Subversion server, but in a different folder.
Weird thing is that RedmineUser1 gets the error, while RedmineUser2 was able to delete the file. But for both of them, the Windows User running Redmine services (which should have access to the file to delete it) is the same!