Modify

Opened 4 years ago

Closed 4 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: walnut
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 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by doug

comment:1 Changed 4 years ago by walnut

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

comment:2 Changed 4 years ago by walnut

  • Resolution set to fixed
  • Status changed from new to closed

(In [10054]) Fixes #8661

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

Add Comment

Modify Ticket

Action
as closed The owner will remain walnut.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.