Changes between Initial Version and Version 4 of Ticket #10625


Ignore:
Timestamp:
Nov 16, 2012, 10:41:00 PM (11 years ago)
Author:
Steffen Hoffmann
Comment:

Replying to anonymous:

On login and logout I get the following error (for each environment):

Exception exceptions.AssertionError: ...

It is related with the single sign on feature. It can be easily fixed by explicitly closing the database connection with db.close after the commit in the following lines:

I strongly disagree, and this is backed by developer discussion. A forced close may yield other side-effects, and current Trac db API strongly advocates for not using such forceful actions to a transaction in general.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10625

    • Property Cc ms4py added; anonymous removed
    • Property Keywords database API added
  • Ticket #10625 – Description

    initial v4  
    88It is related with the single sign on feature. It can be easily fixed by explicitly closing the database connection with {{{db.close}}} after the commit in the following lines:
    99
    10 - http://trac-hacks.org/browser/accountmanagerplugin/trunk/acct_mgr/web_ui.py#L560
    11 - http://trac-hacks.org/browser/accountmanagerplugin/trunk/acct_mgr/web_ui.py#L606
     10 * http://trac-hacks.org/browser/accountmanagerplugin/trunk/acct_mgr/web_ui.py#L560
     11 * http://trac-hacks.org/browser/accountmanagerplugin/trunk/acct_mgr/web_ui.py#L606