Ticket #29 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Trac refuse to add attachments

Reported by: anonymous Owned by:
Priority: major Milestone:
Version: Keywords:
Cc: alexey.skladnoy@…

Description

This is obviously bug in bug tracker configuration. Here is error message which trac displays when it fails to attach file.

If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.

Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.

TracGuide — The Trac User and Administration Guide
Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.4/trac/attachment.py", line 361, in process_request
    self._do_save(req, attachment)
  File "/var/lib/python-support/python2.4/trac/attachment.py", line 494, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/var/lib/python-support/python2.4/trac/attachment.py", line 180, in insert
    os.makedirs(self.path)
  File "os.py", line 156, in makedirs
    makedirs(head, mode)
  File "os.py", line 159, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/srv/trac/vector/attachments/ticket'

Change History

Changed 3 years ago by rl

Thanks for letting me know, I'll look into this. In the meantime, could you please send me the patch by email.

Changed 3 years ago by anonymous

There is more problems with trac. It tends to lose session. Steps to reproduce:

1. Login. This proceeds just fine and you logged in. 2. Load another page. You are logged out. This may take few page loads.

Because of this bug reporting as anonymous

Changed 3 years ago by rl

  • status changed from new to closed
  • resolution set to fixed

I believe I finally fixed the attachment thing. I don't think I can do anything about the other thing, that looks like either a trac bug or a browser problem. I'm closing this ticket for now.

Note: See TracTickets for help on using tickets.