﻿id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
9246	InternalError when refresh_passwd = true	wizpig64	hasienda	"Was really going insane with configuring my new trac server and this plugin, until i started over and logged out and in at each step. Found the issue here, when Admin > Accounts > Configuration > Password Refresh is enabled. 

I found and disabled it here in the trac.ini file:

{{{
[account-manager]
refresh_passwd = false
}}}


When the above is enabled, logging in gives this error, likely during the process which re-encrypts the password of course:

{{{
Traceback (most recent call last):
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\api.py"", line 440, in send_error
    data, 'text/html')
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\chrome.py"", line 827, in render_template
    message = req.session.pop('chrome.%s.%d' % (type_, i))
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\api.py"", line 216, in __getattr__
    value = self.callbacks[name](self)
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\main.py"", line 300, in _get_session
    return Session(self.env, req)
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\session.py"", line 192, in __init__
    if req.authname == 'anonymous':
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\api.py"", line 216, in __getattr__
    value = self.callbacks[name](self)
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\web\main.py"", line 159, in authenticate
    authname = authenticator.authenticate(req)
  File ""build\bdist.win32\egg\acct_mgr\web_ui.py"", line 489, in wrap
    return func(self, *args, **kwds)
  File ""build\bdist.win32\egg\acct_mgr\web_ui.py"", line 510, in authenticate
    user = self._remote_user(req)
  File ""build\bdist.win32\egg\acct_mgr\web_ui.py"", line 790, in _remote_user
    if acctmgr.check_password(user, password) == True:
  File ""build\bdist.win32\egg\acct_mgr\api.py"", line 306, in check_password
    valid = store.check_password(user, password)
  File ""build\bdist.win32\egg\acct_mgr\db.py"", line 99, in check_password
    """""", (self.key, user))
  File ""c:\docume~1\david\locals~1\temp\easy_install-gddpnv\Trac-0.12.2-py2.6-win32.egg.tmp\trac\db\util.py"", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
InternalError: current transaction is aborted, commands ignored until end of transaction block
}}}


If there's any more information i can give about my setup that might be causing this, let me know how I can help."	defect	closed	normal	AccountManagerPlugin	normal	fixed	refresh_passwd password refresh		0.11
