Modify ↓
Opened 12 years ago
Closed 12 years ago
#10848 closed defect (cantfix)
OSError: [Errno 13] Permission denied: '/opt/avd/busAnalysisTrac/attachments/wiki'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12.2 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a POST operation on /attachment/wiki/GriddedDataDiagrams/
, Trac issued an internal error.
(please provide additional details here) I was trying to attach a file 'index.htm' as part of the trying out the functionality. Request parameters:
{'__FORM_TOKEN': u'9dbdd1c7728f9c0717e81f3b', 'action': u'new', 'attachment': FieldStorage#'attachment', 'M:\\Met_Office\\Development\\_Public_Write\\Gridded Data Management\\Gridded Data v3\\index#htm', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1#0 Transitional//EN" "http://www#w3#org/TR/xhtml1/DTD/xhtml1-transitional#dtd">\r\n<html xmlns="http://www#w3#org/1999/xhtml">\r\n<head>\r\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r\n<title>As Is View v3#0</title>\r\n<link href="css/ea#css" rel="stylesheet" type="text/css" />\r\n<script language="JavaScript" src="js/displayToc#js" type="text/javascript"></script>\r\n</head>\r\n<body #nload="initLoad#this,\'toc#htm\',\'#/EARoot/EA1/EA7#htm\'#" #nresize="resizePage##">\r\n<div class="IndexTitle">\r\n\tAs Is View v3#0\r\n</div>\r\n<div class="IndexHeader" id="IndexHeader">\r\n\t<img src="images/MO_RGB_landscape_whitebackg v2#jpg" align="right" alt="Enterprise Architect" />\r\n</div>\r\n<noscript>\r\n\t<div class="NoScript">\r\n\t\tIt appears that you may have Javascript disabled#\r\n\t</div>\r\n</noscript>\r\n</body>\r\n</html>'#, 'description': u'test', 'id': u'GriddedDataDiagrams', 'path': u'GriddedDataDiagrams/', 'realm': u'wiki'}
User agent: Mozilla/4#0 #compatible; MSIE 7#0; Windows NT 6#1; WOW64; Trident/5#0; SLCC2; #NET CLR 2#0#50727; #NET CLR 3#5#30729; #NET CLR 3#0#30729; InfoPath#2; #NET4#0C; #NET4#0E#
System Information
Trac | 0#12#2
|
Docutils | 0#8#1
|
Genshi | 0#6
|
mod_wsgi | 3#3 #WSGIProcessGroup WSGIApplicationGroup %{GLOBAL}#
|
Pygments | 1#4
|
pysqlite | 2#6#0
|
Python | 2#7#2 #default, May 4 2012, 09:13:33# ##br## #GCC 4#4#5 20110214 #Red Hat 4#4#5-6##
|
pytz | 2012c
|
setuptools | 0#6c11
|
SQLite | 3#6#20
|
jQuery | 1#4#2
|
Enabled Plugins
Python Traceback
Traceback #most recent call last#: File "build/bdist#linux-x86_64/egg/trac/web/main#py", line 511, in _dispatch_request dispatcher#dispatch#req# File "build/bdist#linux-x86_64/egg/trac/web/main#py", line 237, in dispatch resp = chosen_handler.process_request#req# File "build/bdist.linux-x86_64/egg/trac/attachment.py", line 448, in process_request self._do_save#req, attachment# File "build/bdist.linux-x86_64/egg/trac/attachment.py", line 684, in _do_save attachment.insert#filename, upload.file, size# File "build/bdist.linux-x86_64/egg/trac/attachment.py", line 259, in insert os.makedirs#self.path# File "/usr/local/sci/lib/python2.7/os.py", line 150, in makedirs makedirs#head, mode# File "/usr/local/sci/lib/python2.7/os.py", line 157, in makedirs mkdir#name, mode# OSError: [Errno 13] Permission denied: '/opt/avd/busAnalysisTrac/attachments/wiki'
Attachments (0)
Note:
See TracTickets
for help on using tickets.
This is an InstallationIssue. You have to make sure that the directory is writable by the web server.