Page MenuHomePhabricator

get_login_token and userinfo might race condition getting login token making one of them bad and failing login
Open, Needs TriagePublic

Description

https://travis-ci.org/github/dvorapa/pywikibot/jobs/668246640#L3531

VERBOSE:pywiki:Found 1 wikisource:zh processes running, including this one.

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?maxlag=20&format=json&rawcontinue=&meta=userinfo&action=query&uiprop=blockinfo%7Cgroups%7Chasmsg%7Crights HTTP/1.1" 200 419

test_login_logout (tests.site_tests.TestLoginLogout)

Validate login and logout methods by toggling the state. ... VERBOSE:pywiki:APISite("zh", "wikisource").login() called when a previous login was in progress.

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?action=paraminfo&modules=query%2Binfo&maxlag=20&format=json HTTP/1.1" 200 None

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?action=paraminfo&modules=tokens&maxlag=20&format=json HTTP/1.1" 200 398

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?action=paraminfo&modules=query%2Btokens&maxlag=20&format=json HTTP/1.1" 200 None

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?maxlag=20&format=json&rawcontinue=&meta=tokens&action=query&type=csrf%7Ccreateaccount%7Ccsrf%7Cdeleteglobalaccount%7Clogin%7Cpatrol%7Crollback%7Csetglobalaccountstatus%7Cuserrights%7Cwatch HTTP/1.1" 200 332

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?action=paraminfo&modules=logout&maxlag=20&format=json HTTP/1.1" 200 None

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "POST /w/api.php HTTP/1.1" 200 22

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?maxlag=20&format=json&rawcontinue=&meta=userinfo&action=query&uiprop=blockinfo%7Cgroups%7Chasmsg%7Crights HTTP/1.1" 200 233

WARNING: No user is logged in on site wikisource:zh

WARNING:pywiki:No user is logged in on site wikisource:zh

Logging in to wikisource:zh as Pywikibot-test

INFO:pywiki:Logging in to wikisource:zh as Pywikibot-test

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "POST /w/api.php HTTP/1.1" 200 95

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "POST /w/api.php HTTP/1.1" 200 79

VERBOSE:pywiki:Should be logged in now

DEBUG:urllib3.connectionpool:https://zh.wikisource.org:443 "GET /w/api.php?maxlag=20&format=json&rawcontinue=&meta=userinfo&action=query&uiprop=blockinfo%7Cgroups%7Chasmsg%7Crights HTTP/1.1" 200 None

ok

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Dvorapa renamed this task from login loop 3: get_login_token and userinfo race condition getting login token making one login token bad and failing login to login loop 3: get_login_token and userinfo race condition getting login token making one of them bad and failing login.Mar 29 2020, 2:47 AM

This might be due to other loopes

Dvorapa renamed this task from login loop 3: get_login_token and userinfo race condition getting login token making one of them bad and failing login to get_login_token and userinfo might race condition getting login token making one of them bad and failing login.Apr 8 2020, 1:13 PM