Opened 7 years ago

Closed 7 years ago

#2 closed defect (fixed)

OSError: 13 Permission non accordée

Reported by: D Gowers Owned by: somebody
Priority: major Milestone:
Component: GrafX2 Version:
Keywords: Cc:

Description

How to Reproduce

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

---
<text written by an actual human begins here ;)>

Looks like you might have the wrong permissions/ownership set on the directory where attachments are stored?

Anyhow, this was the attachment I was attempting to upload; I've put it on Imgur.

http://i.imgur.com/YO9FcgH.png

<text written by an actual human ends here>
---

Request parameters:

{'__FORM_TOKEN': u'f40ed00c87b4d2824586fa0b',
 'action': u'new',
 'attachment': FieldStorage('attachment', '3stroke-trafficwicket.png', '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x90\x00\x00\x000\x08\x03\x00\x00\x00\xc9\x84\x03d\x00\x00\x03\x00PLTE3\x00\x00f\x00\x00\x99\x00\x00\xff\x00\x00\xba\xba\xba\x00\xff\x00\x00\xff}\x00\xff\xff\x00\x82\xff\x00\x00\xffy\x00\xff\xcf\x00\xff\xff\x00\xd7\xff\x00\x82\xff\x00\x00\xff}\x00\xcb\x9aE\x96<\x18a\x00\x00\xff\xf7\x82\xc3\xff\x82\x82\xff\x82\x82\xff\xbe\x82\xff\xff\x82\xc3\xff\x82\x82\xff\xa6\x82\xff\xcf\x82\xff\xfb\x82\xff\xff\x82\xc3\xff\x82\x82\xff\x9e\x82\x82\x00\x00\x82\x1c\x00\x82<\x00\x82Q\x00\x82e\x00\x82y\x00A\x82\x00\x00\x82\x00\x00\x82<\x00\x82\x82\x00A\x82\x00\x00\x82(\x00\x82M\x00\x82y\x00\x82\x82\x00A\x00\x00\x00\x10\x10\x10   000EEEUUUeeeuuu\x86\x86\x86\x9a\x9a\x9a\xaa\xaa\xaa\xba\xba\xba\xcb\xcb\xcb\xdf\xdf\xdf\xef\xef\xef\xff\xff\xffM\x00\x00Y\x00\x00q\x00\x00\x86\x00\x00\x9e\x00\x00\xb6\x00\x00\xcf\x00\x00\xe7\x00\x00\xff\x00\x00\xff\x1c\x1c\xff44\xffQQ\xffmm\xff\x8a\x8a\xff\xa2\xa2\xff\xbe\xbeM$\x00U(\x00m4\x00\x86<\x00\x9eI\x00\xb6Y\x00\xcfe\x00\xe7q\x00\xff}\x00\xff\x8e\x1c\xff\x9a4\xff\xa6Q\xff\xb2m\xff\xbe\x86\xff\xcf\xa2\xff\xdf\xbeMI\x00YQ\x00qi\x00\x86\x82\x00\x9e\x96\x00\xb6\xae\x00\xcf\xc7\x00\xe7\xe3\x00\xff\xff\x00\xff\xff\x1c\xff\xfb4\xff\xfbQ\xff\xf7m\xff\xfb\x86\xff\xfb\xa2\xff\xfb\xbe\x00M\x00\x00a\x00\x00y\x00\x00\x8e\x00\x00\xa6\x00\x00\xba\x00\x00\xd3\x00\x00\xeb\x00\x00\xff\x00\x1c\xff\x1c8\xff4U\xffQq\xffm\x8a\xff\x86\xa6\xff\xa2\xc3\xff\xbe\x00AA\x00YY\x00qq\x00\x86\x86\x00\x9e\x9e\x00\xb6\xb6\x00\xcf\xcf\x00\xe7\xe7\x00\xff\xffY\xff\xfbu\xff\xfb\x8a\xff\xff\x9e\xff\xfb\xba\xff\xff\xcb\xff\xff\xdb\xff\xff\x00 A\x00,Y\x008q\x00E\x86\x00Q\x9e\x00]\xb6\x00i\xcf\x00u\xe7\x00\x82\xff\x1c\x8e\xff4\x9e\xffQ\xaa\xffm\xba\xff\x8a\xcb\xff\xa2\xd7\xff\xbe\xe3\xff\x00\x00M\x00\x00e\x00\x04y\x00\x04\x8e\x00\x04\xa6\x00\x00\xbe\x00\x00\xd3\x00\x00\xeb\x00\x00\xff\x1c$\xff4<\xffQ]\xffmy\xff\x8a\x92\xff\xa2\xaa\xff\xbe\xc7\xff$\x00M0\x00eA\x00\x82M\x00\x9aY\x00\xb2e\x00\xcbq\x00\xe7y\x00\xff\x82\x00\xff\x8e\x1c\xff\x964\xff\xa6Q\xff\xaem\xff\xbe\x86\xff\xcb\xa2\xff\xdb\xbe\xffI\x00M_\x00cu\x00z\x8b\x00\x90\xa1\x00\xa7\xb7\x00\xbd\xcd\x00\xd4\xe3\x00\xeb\xe6\x17\xed\xea/\xf0\xedG\xf2\xf1_\xf5\xf4v\xf7\xf8\x8e\xfa\xfb\xa6\xfc\xff\xbe\xff \x00\x00,\x00\x008\x04\x04I\x0c\x08U\x14\x10a \x18q($}8,\x86E8\x9aYM\xaam]\xba\x82u\xcb\x9a\x8a\xdf\xb2\xa2\xef\xcf\xbe\xff\xeb\xdf  \x00<<\x00QM\x00eY\x08ye\x0c\x8em\x14\xa2y\x1c\xb6}(\xbe\x828\xc7\x8eM\xcf\x96a\xdb\xa6u\xe3\xb2\x8e\xeb\xc3\xa6\xf7\xd3\xc3\xff\xeb\xdf\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\xac||\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\xff\x1c\x1c\x00\x00\x00Wbz\xb4\xb4\xb4mmm\xccF\xeb6\x00\x00\x00\x0ftEXtSoftware\x00Grafx2\xa0\xa2Sj\x00\x00\x01\xaaIDATX\x85\xed\x99\xeb\x96\xc2 \x0c\x06\x13\xf0\xfd\x9fy\xa5A\x8a@H\xbe\xc2\x9e\xb3\xedY~\xa9\x1d\x99\xe9\xc5\xb6*\xbd\xfe\xd8 }\t\xe9\xcbF\x83\x99w\xf0\xf7\t"\xc2\x8a\x88\xb1"\x8d\x7fv\xd0\x0e\xfe6A\x04\x06\x11\x18\xa4\xf27\x0b\xf2\x1bD\xb0\x81W\xa6 0\xe8=\x7f\x08@\x90\xce\xff\x07]\x0b"\xc2\x8a\x8e\xf9\x93`\x9d\x7fpP\x04\x83\x14~8\x03\x81A\xe93\x8c\x04\xcd\xf8]A\x01\x0cRy+\xc8e\xa8\x04\xcb\xfc\xf0\xec\r\x06\x1d{\xe0-\xf0n\xa2)\xff\xdc\xa0\x08\x06i\xfc\xe8\\\t\x06\xd1G\xc0\xbe\xa09o\x06\xd9\x86\xbc\x07\xb2`\x95\xbfA\x10\x81A\x04\x06\x19\xfc#\x83\x18\x0c\x9a\xf2\xdd\xf3nX\xd3\x8b :\x83L\x9e:\x1c)\x12@V8\t\xac"\x07O-\xed\x0f*\x80\xac\xb0\x19\xe4\xe3\xa9\xc3\x9dI\xd5\xe2S\xb0\x81\xa7\x9ew%\xf1\xb9,\x1f\x12\x91\x997\xf0\xe4\xea\xe9\x14|\x8cN\xc0\xeb\xbcs\x0bu\x8a\x90\xee\x89\xc5\x92\x8f\xd1XK\xaf\xf3@\xd0\x97"\x1d\x03\xc5Q\x0bj\xc9\x15\xdeuP\x8f\xd69\x1b\xc21\x7f#\xf8ht>\xa8\xfc\xf9&0\xe8\x15\x8bb\x14\x94\xcc\x13\xbe\x0b*\xbc\xe3<4\xee\x11\x83(B9\xaf\xe4q\xdc}\xb5\xbf\x8f\xd5\xbc\xdc\x9f\x8d\xf8\xda\x82\xf5dC<\x83>\xbb$\xca\xf6\x1a\xf3\xa1\x19-\xef\xb8t\x8ck\xaa\xa4X\x07\x05yi\xc27E\ro_\\\xf5\x9c*I<\xe5\xb1\xc5\xb7=u@\xf7\x16\xa8\xe7+\xc9\xd1c\xf3\xe6\xb7\x0e\xc7=)\x92c\xf2\xc6Oz\x9e\x9eF\xb2\xc8O|H\xcf\xe9X\xe5\xe7B\xf0\xef\x8e\x1d<8\xc3\xef\x8f\x1f\xa3\tQ\x94\xd8\xceEw\x00\x00\x00\x00IEND\xaeB`\x82'),
 'description': u"breakdown of steps ('finished' blocked-out image is the rightmost item)",
 'id': u'1',
 'path': u'1',
 'realm': u'ticket'}

User agent: #USER_AGENT#

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/dist-packages/trac/attachment.py", line 512, in process_request
    data = self._do_save(req, attachment)
  File "/usr/lib/python2.7/dist-packages/trac/attachment.py", line 769, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/usr/lib/python2.7/dist-packages/trac/attachment.py", line 319, in insert
    os.makedirs(dir)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 150, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission non accordée: '/home/subversion/trac/GrafX2/files'

Attachments (1)

serialconnect.png (3.9 KB) - added by Adrien Destugues 7 years ago.
Test attachment upload.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by Adrien Destugues

Attachment: serialconnect.png added

Test attachment upload.

comment:1 Changed 7 years ago by Adrien Destugues

Resolution: fixed
Status: newclosed

Sorry. Fixed!

Note: See TracTickets for help on using tickets.