Description
We can't create users by the moin cli for a HTTPAuthMoin setup,
Steps to reproduce
setup HTTPAuthMoin in wikiconfig.py
from MoinMoin.auth.http import HTTPAuthMoin auth = [HTTPAuthMoin(autocreate=True)]
$:/tmp/moin-1.9.3 > MoinMoin/script/moin.py account create --name=FirstnameLastname --email=r.bauer@shell.moinmo.in --password=supersecret
2011-02-01 16:13:05,063 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module! 2011-02-01 16:13:05,242 WARNING MoinMoin.log:111 /tmp/moin-1.9.3/MoinMoin/support/pygments/plugin.py:39: UserWarning: Module pygments was already imported from /tmp/moin-1.9.3/MoinMoin/support/pygments/__init__.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path 2011-02-01 16:13:05,416 INFO MoinMoin.config.multiconfig:127 using wiki config: /tmp/moin-1.9.3/wikiconfig.pyc Traceback (most recent call last): File "MoinMoin/script/moin.py", line 24, in <module> run() File "MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/tmp/moin-1.9.3/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/tmp/moin-1.9.3/MoinMoin/script/__init__.py", line 261, in mainloop plugin_class(args[2:], self.options).run() # all starts again there File "/tmp/moin-1.9.3/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/tmp/moin-1.9.3/MoinMoin/script/account/create.py", line 63, in mainloop self.init_request() File "/tmp/moin-1.9.3/MoinMoin/script/__init__.py", line 185, in init_request self.request = ScriptContext(url, self.options.page) File "/tmp/moin-1.9.3/MoinMoin/web/contexts.py", line 439, in __init__ wsgiapp.init(self) File "/tmp/moin-1.9.3/MoinMoin/wsgiapp.py", line 55, in init context.user = setup_user(context, context.session) File "/tmp/moin-1.9.3/MoinMoin/wsgiapp.py", line 222, in setup_user userobj = auth.handle_request(context, userobj) File "/tmp/moin-1.9.3/MoinMoin/auth/__init__.py", line 445, in handle_request userobj, cont = userobj, cont = authmethod.request(request, userobj, cookie=request.cookies) File "/tmp/moin-1.9.3/MoinMoin/auth/http.py", line 93, in request abort(response) File "/tmp/moin-1.9.3/MoinMoin/support/werkzeug/exceptions.py", line 436, in __call__ raise _ProxyException(code) werkzeug.exceptions._ProxyException: proxy exception for <werkzeug.wrappers.Response object at 0x292a250>
Component selection
- general
Details
MoinMoin Version |
1.9.3 |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
- create your users by the default moin auth. Then switch to HTTPAuthMoin.
- or just let users create themselves, as usual?
- do this and then renove moin auth.
Discussion
Plan
- Priority:
- Assigned to:
- Status: