I'm running Trac 0.11.6 on Windows XP Pro using TracAccountManager? Plugin. If the user tries to register, the "rename" function runs into the first exception and throws an error.
2009-12-20 19:43:05,696 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
File "C:\Server\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\main.py", line 450, in _dispatch_request
dispatcher.dispatch(req)
File "C:\Server\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\main.py", line 206, in dispatch
resp = chosen_handler.process_request(req)
File "C:\Server\Python26\lib\site-packages\tracaccountmanager-0.2.1dev_r0-py2.6.egg\acct_mgr\web_ui.py", line 400, in process_request
_create_user(req, self.env)
File "C:\Server\Python26\lib\site-packages\tracaccountmanager-0.2.1dev_r0-py2.6.egg\acct_mgr\web_ui.py", line 70, in _create_user
mgr.set_password(user, password)
File "build\bdist.win32\egg\acct_mgr\api.py", line 128, in set_password
if store.set_password(user, password):
File "build\bdist.win32\egg\acct_mgr\svnserve.py", line 60, in set_password
cfg.save()
File "C:\Server\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\config.py", line 225, in save
fileobj.close()
File "C:\Server\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\util\__init__.py", line 178, in commit
rename(self._temp, self._path)
File "C:\Server\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\util\__init__.py", line 120, in rename
raise ctypes.WinError()
Replacing "FileMoveEx?" (line 120: init.py in trac\utils) with
os.remove(dst)
os.rename(src, dst)
fixed the error. (but i'm not that much into python to say that it doesn't break anything else)
I'm pretty sure this is a general trac bug, but - the trac ticket guidelines sent me here ... ;)