Page MenuHomePhabricator

"Add interlanguage links" does not work for temporary accounts
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

When clicking "Add interlanguage links" as a temporary user, nothing appears to happen. In the top left of the screen I see a cut off "Error..." popup.

Steps to reproduce problem
  1. https://test.wikipedia.org/wiki/1941_in_Scotland
  2. If you don't have a temporary account, check you are logged out and make an edit to create one
  3. Click "Add interlanguage links" in the Tools menu

Expected behaviour: The "Link with page" popup appears or you are redirected to https://test.wikidata.org/wiki/Special:NewItem?site=testwiki&page=1941+in+Scotland.
Observed behaviour: Nothing happens. You see "Error..." in the top right.

Environment

Browser: Firefox 115, Chromium 120.
Wiki(s): https://test.wikipedia.org MediaWiki 1.43.0-wmf.15 (b30ac00) 22:23, 22 July 2024. WikibaseClient – (a3a74fd) 07:26, 22 July 2024.

Screenshots

add_interlanguage_links.png (1,666×635 px, 139 KB)

Acceptance Criteria
  • The "Add interlanguage links" should appear as a regular link without any interactive user interface

Event Timeline

Lydia_Pintscher subscribed.

Thank you!

It seems we missed something in the previous work in T351971#9516414.
Conceptually I think we had decided that the link should not be shown for temporary accounts.

I think the unhelpful error message might be because the API response for the meta=userinfo API request to Wikidata is missing CORS headers?

image.png (458×238 px, 39 KB)

Conceptually I think we had decided that the link should not be shown for temporary accounts.

Or rather, I think, that it should just be a regular link without any interactive user interface – at least that’s what currently happens for anonymous visitors.

Change #1061057 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Only show interwiki links dialog for named users

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

Change #1061057 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Only show interwiki links dialog for named users

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