Hello List
I have the same problem. I put some print statements into the login.py and logged in with a dummy password. I use 56 __version__='$Id: login.py 8064 2010-04-08 11:15:40Z xqt $' What I get is the "NeedToken" over and over again, but it seems to me that I send the right lgtoken to the server. Still it gets stuck in this loop on line 169 of login.py here is some of my output, any idea what is happening?
$ python login.py Checking multiplicity: pid = False Found 1 wikipedia:de processes running, including this one. Checking multiplicity: pid = 1 Found 1 wikipedia:de processes running, including this one. Pywikipediabot [http] trunk/pywikipedia (r8064, 2010/04/08, 11:15:40) Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3] Password for user HRoestBot on wikipedia:de: Logging in to wikipedia:de as HRoestBot via API. sending {'action': 'login', 'lgname': u'HRoestBot', 'lgpassword': 'asf', 'format': 'xml'} False ==== API action:login ==== lgname: HRoestBot lgpassword: XXXXX ---------------- Requesting API query from wikipedia:de receiving {u'login': {u'cookieprefix': u'dewiki', u'token': u'b5eaeafe31cb70318895f2a17158190c', u'sessionid': u'4739abfcf70467c1f95e18a9b5d60d1d', u'result': u'NeedToken'}}
sending {'action': 'login', 'lgname': u'HRoestBot', 'lgtoken': u'b5eaeafe31cb70318895f2a17158190c', 'lgpassword': 'asf', 'format': 'xml'} False ==== API action:login ==== lgname: HRoestBot lgtoken: b5eaeafe31cb70318895f2a17158190c lgpassword: XXXXX ---------------- Requesting API query from wikipedia:de receiving {u'login': {u'cookieprefix': u'dewiki', u'token': u'c7654a8e644ab22a25854c93a9f0b5a1', u'sessionid': u'7a07eaf263d832a4d3333500db884ecd', u'result': u'NeedToken'}}
On 8 April 2010 18:41, stanlekub stanlekub@free.fr wrote:
Le jeudi 08 avril 2010 à 18:18 +0200, Michael Weber a écrit :
Okay, now it says "Logging in to wikipedia:en as PotatoBot via API." and then stops doing anything.
Mediawiki's login action was changed yesterday (7/04/10) to prevent a CSRF vulnerability[1].
Pywikibot was updated soon after this to take these changes into account[2], are you sure you've updated you're copy since then ?
stanlekub
[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=23076 [2] http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/login.py?r1=80...
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l