Modify

Opened 13 years ago

Closed 13 years ago

#8661 closed defect (fixed)

Discarded db connection object led to "Cannot operate on a closed cursor" and tracd segfaulting

Reported by: doug Owned by: Mark Ryan
Priority: normal Component: ChildTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

childtickets.py uses a bad pattern for getting the cursor, as discussed in this email thread, this Trac commit, and TracDev/DatabaseApi. The attached patch fixes it for me, although TracDev/DatabaseApi suggests alternative patterns.

Loading two tickets simultaneously in separate tabs was enough to trigger this error on one setup I tried; occurrence may depend on server setup, database size, etc.

Attachments (1)

db_cnx.patch (604 bytes) - added by doug 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by doug

Attachment: db_cnx.patch added

comment:1 Changed 13 years ago by Mark Ryan

Thanks Doug... I've updated the plugin with your patch.

comment:2 Changed 13 years ago by Mark Ryan

Resolution: fixed
Status: newclosed

(In [10054]) Fixes #8661

  • Release 1.1.2 (trac 0.11)
  • Release 2.1.2 (trac 0.12)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Mark Ryan.
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.