Ticket #153 (closed defect: fixed)
Trac: attachments to tickets not allowed
| Reported by: | RobD | Owned by: | Scott Penrose |
|---|---|---|---|
| Priority: | normal | Milestone: | # Website |
| Component: | Other | Version: | |
| Keywords: | trac | Cc: |
Description
Scott, not sure if this is a bug or not. When I try to add a small text file to a track ticket, here's the error screen. If this is by design, please ignore this ticket:
Oops…
Trac detected an internal error:
OSError: [Errno 13] Permission denied: '/var/trac/xcsoar/attachments/ticket/152'
There was an internal error in Trac. It is recommended that you inform your local Trac administrator and give him all the information he needs to reproduce the issue.
| Trac | 0.11.1 | Python | 2.5.4 (r254:67916, Apr 4 2009, 17:55:16) [GCC 4.3.3] | setuptools | 0.6c9 | SQLite | 3.6.10 | pysqlite | 2.5.0 | Genshi | 0.5.1 | Pygments | 0.10 | GIT | 1.6.0.4 | jQuery: | 1.2.6 | ==== Python Traceback ==== Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 197, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/trac/attachment.py", line 394, in process_request self._do_save(req, attachment) File "/usr/lib/python2.5/site-packages/trac/attachment.py", line 606, in _do_save attachment.insert(filename, upload.file, size) File "/usr/lib/python2.5/site-packages/trac/attachment.py", line 218, in insert os.makedirs(self.path) File "/usr/lib/python2.5/os.py", line 171, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/var/trac/xcsoar/attachments/ticket/152' a ticket at this site. |
The action that triggered the error was:
POST: /attachment/ticket/152/
TracGuide — The Trac User and Administration Guide







