Description
xmlrpc getAuthToken() call is not working. Returns None.
Steps to reproduce
wikiconfig needs actions_excluded = [] so it does not exclude xmlrpc action.
Run the wiki (standalone), create an account (see code below).
Run this code on same machine:
import xmlrpclib user, password = "TestUser", "TestPassword" url = "http://localhost:8080/?action=xmlrpc2" wiki = xmlrpclib.ServerProxy(url) token = wiki.getAuthToken(user, password) print repr(token) # will print None, but should print some non-empty auth token
Component selection
- xmlrpc getAuthToken / session handling?
Details
MoinMoin Version |
1.9alpha |
OS and Version |
Linux |
Python Version |
2.4 / 2.5 |
Server Setup |
wsgi |
Workaround
None.
Discussion
This bug is blocking update of master19 wiki with current i18n strings as the update scripts rely on this functionality.
def xmlrpc_getAuthToken(self, username, password, *args): """ Returns a token which can be used for authentication in other XMLRPC calls. If the token is empty, the username or the password were wrong. """ id_handler = XmlRpcAuthTokenIDHandler() # XXX not used below! ...
There is more broken in xmlrpc: xmlrpc_applyAuthToken and xmlrpc_deleteAuthToken still call handle_auth, but handle_auth does not exist any more.
handle_jid_auth is also missing
The example on top is wrong you likly need multicall for the authorisation. -- ReimarBauer 2009-07-22 19:48:40
Plan
- Priority: high
Assigned to: ThomasWaldmann
- Status:
mostly fixed by http://hg.moinmo.in/moin/1.9/rev/002c21b10561
the jabber stuff works with http://hg.moinmo.in/moin/1.9/rev/5eaec9412317 (needs more work)