Modify

Opened 8 years ago

Closed 4 years ago

#4817 closed defect (wontfix)

Python exception when change is tied to an attached file

Reported by: Emmanuel Blot Owned by: Noah Kantrowitz
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 (0)

Change History (2)

comment:1 Changed 7 years ago by Ryan J Ollos

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.

comment:2 Changed 4 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Closing tickets for deprecated plugin.

Modify Ticket

Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.