https://bugzilla.wikimedia.org/show_bug.cgi?id=41586
Web browser: ---
Bug #: 41586
Summary: api login returns wrong lgtoken on wikidata.org
Product: Wikimedia
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: wikidata
Severity: blocker
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
the lgtoken attribute (which is need to create a valid cookie for future
requests) is invalid after successful login.
request (POST):
action=login&lgpassword=xxx&lgname=MerlIwBot
response:
<api><login result="NeedToken"
token="087cb80705ed9564d18c3309fae1ec"
cookieprefix=wikidatawiki
sessionid="9b4c867c526e06f0e55ee395287ff0"
/></api>
request (POST):
action=login&lgtoken=087cb80705ed9564d18c3309fae1ec&lgpassword=xxx&lgname=MerlIwBot
response:
<api><login result="Success"
lguserid="3280"
lgusername="MerlIwBot"
lgtoken="��������������������������������"
cookieprefix=wikidatawiki
sessionid="9b4c867c526e06af0e55ee39f287ff0"
/></api>
password, sessionid and first token is a bit modified for this paste of course.
The problem is that the lgtoken is invalid because it only contains character
hex:EF BF BD (which is "object replacement character" according to unicode
table)
Login on all other wmf wikis and wikidata-test-repo.wikimedia.de work for me.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l