Project

General

Profile

Actions

Defect #8089

closed

Error trying to delete XML attachment

Added by Cassiano Monteiro about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
2011-04-06
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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.

Actions #1

Updated by Etienne Massip about 13 years ago

Can't reproduce on demo site.

Actions #2

Updated by Jean-Philippe Lang about 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.

Actions #3

Updated by Cassiano Monteiro about 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.

Actions #4

Updated by Etienne Massip about 13 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid
Actions #5

Updated by Cassiano Monteiro almost 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?

Actions #6

Updated by Etienne Massip almost 13 years ago

Could be locked by another process ?

Actions #7

Updated by Cassiano Monteiro almost 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!

Actions

Also available in: Atom PDF