Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #3 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

OSError: (13, 'Permission denied')

Reported by: hailfinger Owned by: hailfinger
Priority: major Milestone:
Component: flashrom Version:
Keywords: Cc:
Dependencies: Patch Status: there is no patch

Description

How to Reproduce

While doing a POST operation on /attachment/ticket/2, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'88590e6c536c68a9192d038f',
 'action': u'new',
 'attachment': FieldStorage('attachment', 'test.c', '#include <stdio.h>\n#include <stdint.h>\n\nvoid u64function(uint64_t bar)\n{\n\tprintf("%llx\\n", bar);\n}\n\nint main()\n{\n\tuint32_t hi = 0xdeadbeef;\n\tuint32_t lo = 0xcafebabe;\n\tu64function((((uint64_t) hi) << 32) | lo);\n\treturn 0;\n}\n'),
 'description': u'test attachment',
 'id': u'2',
 'path': u'2',
 'realm': u'ticket'}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081213 SUSE/1.1.14-1.1 SeaMonkey/1.1.14

System Information

Trac 0.11.5
Python 2.6 (r26:66714, Feb 3 2009, 20:49:49)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]]
setuptools 0.6c9
SQLite 3.6.4
pysqlite 2.4.1
Genshi 0.5.1
Pygments 1.0
Subversion 1.6.4 (r38063)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib64/python2.6/site-packages/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib64/python2.6/site-packages/trac/attachment.py", line 398, in process_request
    self._do_save(req, attachment)
  File "/usr/lib64/python2.6/site-packages/trac/attachment.py", line 612, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/usr/lib64/python2.6/site-packages/trac/attachment.py", line 219, in insert
    os.makedirs(self.path)
  File "/usr/lib64/python2.6/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib64/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/srv/trac/flashrom/attachments/ticket'


Attachments

test.txt Download (14 bytes) - added by stepan 2 years ago.
test attachment

Change History

comment:1 Changed 2 years ago by hailfinger

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by Patrick. Thanks!

Changed 2 years ago by stepan

test attachment

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.