Modify ↓
Opened 14 years ago
Closed 14 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)
Change History (3)
Changed 14 years ago by
Attachment: | db_cnx.patch added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Thanks Doug... I've updated the plugin with your patch.