AttributeError on db.rollback() in environment_needs_upgrade
|Reported by:||Steffen Hoffmann||Owned by:||Steffen Hoffmann|
|Severity:||major||Keywords:||AttributeError upgrade db|
|Cc:||Ryan J Ollos, ivoras@…, Robert Corsaro||Trac Release:||0.12|
On environment upgrade with trac-admin of Trac 0.13dev I get
File "/lib/python2.5/site-packages/Trac-0.13dev-py2.5.egg/trac/env.py", line 646, in needs_upgrade if participant.environment_needs_upgrade(db): File "build/bdist.linux-i686/egg/announcer/api.py", line 493, in environment_needs_upgrade db.rollback() File "/lib/python2.5/site-packages/Trac-0.13dev-py2.5.egg/trac/db/util.py", line 107, in __getattr__ raise AttributeError AttributeError:
This applies to all recent versions of Trac, because the
rollback method has been removed from read-only connections.
db argument to
IEnvironmentSetupParticipant method is such a read-only connection (see T:#10451).
Maybe this is related to other currently open tickets, but then this is rather blurred there, so better have it explicit here.
Change History (17)
comment:6 Changed 4 years ago by
|Cc:||Robert Corsaro added|
|Owner:||changed from Robert Corsaro to Steffen Hoffmann|
|Priority:||normal → high|
|Severity:||normal → major|