Page MenuHomePhabricator

[api-feature] Cyberbot_I uses deprecated API entry points
Open, Needs TriagePublic

Description

The robot Cyberbot_I uses deprecated API entry points and accounts for roughly 30% of all logged deprecated calls. They are mostly targeting enwiki

The user agent is Peachy MediaWiki Bot API Version 2.0 (alpha 8) and such requests for September 26th 2019 on enwiki can be seen at:

https://en.wikipedia.org/wiki/Special:ApiFeatureUsage?wpagent=Peachy+MediaWiki+Bot+API+Version+2.0+%28alpha+8%29&wpstartdate=2019-09-26&wpenddate=2019-09-26

FeatureDateUses
action=query&prop=info&inprop=readable2019-09-262,613,834
action=query&prop=revisions&!rvslots2019-09-262,514,457
action=query&list=users&ustoken2019-09-2627,282
action=tokens2019-09-2627,282
action=login&!lgtoken2019-09-26114
main-account-login2019-09-2696
unclear-"now"-timestamp2019-09-2616

Source code: https://github.com/cyberpower678/Cyberbot_I
Bot page: https://en.wikipedia.org/wiki/User:Cyberbot_I

action=query&prop=revisions&!rvslots

Comes from mediawiki/core commit 07842be379ca3d4d0bc0608c217dd0e8cd7cbe4b T200568 which states in the release notes:

  • action=query&prop=revisions now takes a rvslots parameter to indicate the multi-content revision slots for which content should be returned. It also has a new rvprop, 'roles', to indicate which roles have slots. A deprecation warning will be issued if rvprop=content or rvprop=contentmodel are used without rvslots.
    • The rvcontentformat parameter to action=query&prop=revisions has been deprecated. Clients should be prepared to deal with the default format for relevant models.

action=query&prop=info&inprop=readable

Comes from mediawiki/core commit 20d18cf3cb118cd09028e4d4f4939850e5023207 T194585 which states:

  • Added intestactionsdetail to action=query&prop=info to allow retrieving the reasons an action is not allowed.
  • Deprecated action=query&prop=info inprop=readable in favor of intestactions=read since they both just return $title->userCan( 'read', $user ).

Event Timeline

And since the user agent states Peachy MediaWiki Bot API Version 2.0 (alpha 8) the issue most probably comes from https://github.com/MW-Peachy/Peachy