Opened 18 years ago
Closed 18 years ago
#5851 closed defect (worksforme)
Error when replacing an existing attachment to a ticket
| Reported by: | mjs AT clemson DOT edu | Owned by: | Jonas Borgström |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | 0.10.4 |
| Severity: | major | Keywords: | needinfo |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
I created a ticket which and attached a patch file. Now I want to update this patch file. However, when I try to attach my patch file (which has the same name as before) and mark the box "Replace existing attachment of the same name", then I get the following error:
Oops…
Trac detected an internal error:
If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.
Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.
TracGuide — The Trac User and Administration Guide
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 361, in process_request
self._do_save(req, attachment)
File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 496, in _do_save
attachment.insert(filename, upload.file, size)
File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 183, in insert
filename))
File "/usr/lib/python2.3/site-packages/trac/util/__init__.py", line 112, in create_unique_file
raise Exception('Failed to create unique name: ' + path)
Exception: Failed to create unique name: /home/coin/Trac/Projects/Osi/attachments/ticket/35/osiglpk.100.patch
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Keywords: | needinfo added |
|---|
comment:3 by , 18 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Please see #5377 for the solution that should work, and also check permissions for the attachment dir. No response to suggestions in 3 months, so I'm going to close this. If you have the same problem and new information, please feel free to reopen. Thanks.



#5377 was very similar and said it was a config error. Is the attachment dir not writable, perhaps?