Ticket #4817 (closed defect: wontfix)

Opened 4 years ago

Last modified 2 months ago

Python exception when change is tied to an attached file

Reported by: eblot Assigned to: coderanger
Priority: normal Component: TicketDeletePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Here the traceback that is dumped when a change related to an attached file is deleted:

Traceback (most recent call last):
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/api.py", line 367, in send_error
    'text/html')
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/chrome.py", line 728, in render_template
    if not req.session or not int(req.session.get('accesskeys', 0)):
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/api.py", line 194, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/main.py", line 267, in _get_session
    return Session(self.env, req)
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/session.py", line 157, in __init__
    self.get_session(req.authname, authenticated=True)
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/session.py", line 173, in get_session
    super(Session, self).get_session(sid, authenticated)
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/web/session.py", line 56, in get_session
    (sid, int(authenticated)))
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/virtualenv/lib/python2.5/site-packages/Trac-0.11.4rc1-py2.5.egg/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
InternalError: current transaction is aborted, commands ignored until end of transaction block

It occurs whether the change is deleted, on the attachment field of the change is deleted

Attachments

Change History

10/29/09 19:57:10 changed by rjollos

As of [6925]:

Adding an attachment results in two entries on the Delete Ticket Changes page: an empty comment field and an attachment field.

  1. Trying to delete the empty comment field has no effect.
  2. Deleting the attachment field results in removal of the comment and attachment fields.

03/26/13 20:07:10 changed by rjollos

  • status changed from new to closed.
  • resolution set to wontfix.

Closing tickets for deprecated plugin.


Add/Change #4817 (Python exception when change is tied to an attached file)




Change Properties
Action