Edgewall Software

Ticket #2215 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

problem adding attachment in 0.92b2

Reported by: tony@… Owned by: jonas
Priority: high Milestone: 0.9
Component: general Version: 0.9b2
Severity: major Keywords:
Cc:

Description (last modified by cmlenz) (diff)

Oops...
Trac detected an internal error:

local variable 'targetfile' referenced before assignment

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

Go to http://trac.edgewall.com/ 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 "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, env)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 265, in process_request
    self._do_save(req, attachment)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 333, in _do_save
    attachment.insert(filename, upload.file, size)
  File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 163, in insert
    targetfile.close()
UnboundLocalError: local variable 'targetfile' referenced before assignment

Attachments

Change History

Changed 3 years ago by cmlenz

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)
  • milestone set to 0.9

Should be fixed in [2389].

Add/Change #2215 (problem adding attachment in 0.92b2)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.