Develop
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.
To that end, you could ==== How to Reproduce ==== While doing a POST operation on /attachment/ticket/152/, Trac issued an internal error. (please provide additional details here) Request parameters: {{{ {'FORM_TOKEN': u'a9634eca40c715240776cb8e', 'action': u'new', 'attachment': FieldStorage?('attachment', 'XCSoarSimulator-PC-ns1.txt', 'XCSoarSimulator-PC-ns.exe caused an Access Violation at location 7c9113c0 in module ntdll.dll Writing to location 00000000.
Registers:
eax=00000000 ebx=0060e890 ecx=00000000 edx=7c97e140 esi=00245288 edi=80000001
eip=7c9113c0 esp=0022fef4 ebp=0022ff2c iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000206
Call stack:
7C9113C0 ntdll.dll:7C9113C0 RtlDeleteCriticalSection?
00476C08 XCSoarSimulator-PC-ns.exe:00476C08 _onexit crt1.c:289
_onexit_t _onexit(
_onexit_t pfn = &0x04f3da84
)
77C39E24 msvcrt.dll:77C39E24 _initterm
77C39EC5 msvcrt.dll:77C39EC5 _cexit
00401253 XCSoarSimulator-PC-ns.exe:00401253 WinMainCRTStartup crt1.c:271
void WinMainCRTStartup(
)
7C817077 kernel32.dll:7C817077 RegisterWaitForInputIdle?
| 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
