= Description = If you have two superuser accounts you can't su to the other superuser user without a `AttributeError: 'NoneType' object has no attribute 'auth_method'`. If you go in a line from one superuser to another superuser and then to a normal user you get an internal server error. == Steps to reproduce == * create three user in your wiki * two setup as superuser * toggle from one superuser to the next one and then to a normal user. You don't get a traceback, but the console log tells {{{ 2009-03-09 23:22:37,614 ERROR MoinMoin.wsgiapp:253 An exception has occurred. Traceback (most recent call last): File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 243, in __call__ context = init(request) File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 37, in init context.user = setup_user(context, context.session) File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 196, in setup_user userobj = auth.handle_logout(context, userobj) File "/home/user/workspace/moin-1.9/MoinMoin/auth/__init__.py", line 406, in handle_logout if userobj.auth_method == 'setuid': AttributeError: 'NoneType' object has no attribute 'auth_method' 2009-03-09 23:22:38,022 INFO MoinMoin.web.serving:41 localhost "GET /Example?action=logout&logout=logout HTTP/1.1" 500 - 2009-03-09 23:22:38,056 ERROR werkzeug:106 Error on request: Traceback (most recent call last): File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/serving.py", line 150, in run_wsgi execute(app) File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/serving.py", line 137, in execute application_iter = app(environ, start_response) File "/home/user/workspace/moin-1.9/MoinMoin/support/werkzeug/utils.py", line 244, in __call__ return self.app(environ, start_response) File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 243, in __call__ context = init(request) File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 37, in init context.user = setup_user(context, context.session) File "/home/user/workspace/moin-1.9/MoinMoin/wsgiapp.py", line 196, in setup_user userobj = auth.handle_logout(context, userobj) File "/home/user/workspace/moin-1.9/MoinMoin/auth/__init__.py", line 406, in handle_logout if userobj.auth_method == 'setuid': AttributeError: 'NoneType' object has no attribute 'auth_method' }}} == Example == ##Add URL that show the bug, screenshot or test wiki markup that fail... ##URL: ##{{attachment:screenshot.png}} ##{{{ ##Example wiki markup that fail ##}}} == Component selection == ## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ... * general == Details == ## If you got a traceback, please save the traceback page as html and attach here: ## [[attachment:traceback.html]] ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!MoinMoin Version''' || 1.9 4638:7bc4d1571f8f || || '''OS and Version''' || linux ubuntu 8.10 || || '''Python Version''' || 2.5 || || '''Server Setup''' || standalone || || '''Server Details''' || || || '''Language you are using the wiki in''' (set in the browser/UserPreferences) || || == Workaround == ## How to deal with the bug until it is fixed = Discussion = = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: duplicate? fixed by http://hg.moinmo.in/moin/1.9/rev/3e4e67bcbedd ? ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBugFixed