Page MenuHomePhabricator

Page.authorship() does not work without login
Open, MediumPublicBUG REPORT

Description

Page.authorship() calls https://xtools.wmcloud.org/authorship to get authorship data bur any call fails with HTTPError('403 Client Error: Forbidden for url: https://xtools.wmcloud.org/authorship/... and the response page says: For performance reasons, the requested data is only available to logged-in users.

Therefore:

  • Implement (oauth) login for xtools
  • Skip doctests in meantime until login is implemented

Event Timeline

Xqt triaged this task as High priority.Apr 25 2025, 2:54 PM
Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt added subscribers: Aram, JJMC89.

Change #1141507 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] tests: Skip authorship() tests

https://gerrit.wikimedia.org/r/1141507

Change #1141507 merged by jenkins-bot:

[pywikibot/core@master] tests: Skip authorship() tests

https://gerrit.wikimedia.org/r/1141507

Change #1147141 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [fix] use WikiHistory instead of XTools to implement authorship()

https://gerrit.wikimedia.org/r/1147141

Change #1147141 merged by jenkins-bot:

[pywikibot/core@master] [fix] use WikiHistory instead of XTools to implement authorship()

https://gerrit.wikimedia.org/r/1147141

Xqt lowered the priority of this task from High to Medium.May 18 2025, 12:50 PM

Change #1156773 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] doc: remove documentation for removed parametes in WikiBlameMixin

https://gerrit.wikimedia.org/r/1156773

Change #1156773 merged by jenkins-bot:

[pywikibot/core@master] doc: remove documentation for removed parametes in WikiBlameMixin

https://gerrit.wikimedia.org/r/1156773