Pintoch created this task.
Pintoch added projects: Wikidata, OpenRefine.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  Over the past 48 hours, there seems to have been a change in the behaviour of 
MediaWiki login API for Wikidata. This causes all logins from Wikidata-Toolkit 
(Java library) to fail. Among others, this affects OpenRefine users.
  
  To reproduce:
  
  - Fetch a login token with 
https://www.wikidata.org/w/api.php?action=query&meta=tokens&type=login&format=json
  - Perform a POST query to login using this token and valid credentials:
  
    curl -X POST "https://www.wikidata.org/w/api.php"; -d 
"action=login&lgname=MY_USERNAME&lgpassword=MY_PASSWORD&lgtoken=MY_TOKEN&format=json"
  
  which gives the following response:
  
    {
      "warnings": {
        "main": {
          "*": "Subscribe to the mediawiki-api-announce mailing list at 
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for 
notice of API deprecations and breaking changes. Use 
[[Special:ApiFeatureUsage]] to see usage of deprecated features by your 
application."
        },
        "login": {
          "*": "Fetching a token via \"action=login\" is deprecated. Use 
\"action=query&meta=tokens&type=login\" instead."
        }
      },
      "login": {
        "result": "NeedToken",
        "token": "dda68bc218a252765816dca9570ec6755e8d6462+\\"
      }
    }
  
  This bug can be observed for existing releases of Wikidata-Toolkit (and 
therefore OpenRefine), so this issue cannot come from a client-side change. One 
can observe that no data imports have been made through OpenRefine for about 48 
hours: https://tools.wmflabs.org/editgroups/?tool=OR
  
  This seems to depend on subtle details of cookie handling according to this 
pull request <https://github.com/Wikidata/Wikidata-Toolkit/pull/490>.
  While we can of course fix things on Wikidata-Toolkit's side, it would be 
great if the change on Wikidata's side could be reverted at least temporarily, 
since fixing this on our side requires making new releases of Wikidata-Toolkit 
and OpenRefine.
  
  OR issue: https://github.com/OpenRefine/OpenRefine/issues/2526

TASK DETAIL
  https://phabricator.wikimedia.org/T249680

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pintoch
Cc: Pintoch, Aklapper, darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Nikerabbit, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to