#1488442 closed Bugs (fixed)

OSError: [Errno 13] Permission denied: '/var/www/trac.roundcube.net_mysql/attachments/ticket/1488441'

Reported by: JohnDoh Owned by: adam
Priority: 5 Milestone: later
Component: Trac Version:
Severity: normal Keywords:
Cc:

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'fc097626b15145500f960f65',
 'action': u'new',
 'attachment': FieldStorage('attachment', 'rcmail.r6096.patch', "--- roundcube_svn/program/include/rcmail.php\t2012-04-16 19:07:35.000000000 +0100\n+++ roundcube_dev/program/include/rcmail.php\t2012-04-18 18:18:51.000000000 +0100\n@@ -1577,6 +1577,7 @@\n                 if ($maxlength && $maxlength > 1) {\n                     $foldername = abbreviate_string($foldername, $maxlength);\n                 }\n+            }\n \n                  $select->add(str_repeat(' ', $nestLevel*4) . $foldername, $folder['id']);\n \n@@ -1585,7 +1586,6 @@\n                         $select, $realnames, $nestLevel+1, $opts);\n                 }\n             }\n-        }\n \n         return $out;\n     }\n"),
 'description': u'',
 'id': u'1488441',
 'path': u'1488441',
 'realm': u'ticket'}

User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/attachment.py", line 448, in process_request
    self._do_save(req, attachment)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/attachment.py", line 684, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/attachment.py", line 259, in insert
    os.makedirs(self.path)
  File "/usr/lib/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/www/trac.roundcube.net_mysql/attachments/ticket/1488441'

Change History (1)

comment:1 Changed 14 months ago by adam

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

Should be working properly now.

Note: See TracTickets for help on using tickets.