Page MenuHomePhabricator

View full log does not work on wikis with language other than English
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

You're sent to https://meta.wikimedia.org/wiki/Speci%C3%A1ln%C3%AD:Protokolovac%C3%AD_z%C3%A1znamy?type=gblblock&page=126.110.226.230, which is a 404, because Meta's language is English

What should have happened instead?:

The link should've been https://meta.wikimedia.org/wiki/Special:Log?type=gblblock&page=126.110.226.230

Other information (browser name/version, screenshots, etc.):

The link generated depends on wgLanguage, not on user language.

Event Timeline

Dreamy_Jazz set the point value for this task to 2.

Adding to our sprint board as a bug caused by some of our recent patches.

Dreamy_Jazz changed the point value for this task from 2 to 1.Sep 9 2024, 3:30 PM

The way that MediaWiki-extensions-CentralAuth does this is by using the English language name for the special page. This should work even if the central wiki does not use English, as it should redirect to the localised version.

Change #1071641 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@master] Generate special page name in English for central URLs

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

Change #1071641 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Generate special page name in English for central URLs

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

Change #1072159 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@wmf/1.43.0-wmf.22] Generate special page name in English for central URLs

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

@Dreamy_Jazz should we backport this to wmf.22?

I'm fine either way, so will defer to backporting.

Change #1072159 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@wmf/1.43.0-wmf.22] Generate special page name in English for central URLs

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

Mentioned in SAL (#wikimedia-operations) [2024-09-11T13:27:41Z] <dreamyjazz@deploy1003> Started scap sync-world: Backport for [[gerrit:1071838|Remove ResourceLoaderUseObjectCacheForDeps (T343492)]], [[gerrit:1072159|Generate special page name in English for central URLs (T374277)]], [[gerrit:1072176|IPInfoLogFormatter: Avoid unnecessary User object creation (T374526)]], [[gerrit:1071902|Add arbcom group to zhwiki (T374455)]], [[gerrit:1072177|Remove redundant oathauth-enable flag (

Mentioned in SAL (#wikimedia-operations) [2024-09-11T13:29:49Z] <dreamyjazz@deploy1003> jdrewniak, hokwelum, dreamyjazz, hamishz: Backport for [[gerrit:1071838|Remove ResourceLoaderUseObjectCacheForDeps (T343492)]], [[gerrit:1072159|Generate special page name in English for central URLs (T374277)]], [[gerrit:1072176|IPInfoLogFormatter: Avoid unnecessary User object creation (T374526)]], [[gerrit:1071902|Add arbcom group to zhwiki (T374455)]], [[gerrit:1072177|Remove redundant oatha

Mentioned in SAL (#wikimedia-operations) [2024-09-11T13:40:51Z] <dreamyjazz@deploy1003> Finished scap sync-world: Backport for [[gerrit:1071838|Remove ResourceLoaderUseObjectCacheForDeps (T343492)]], [[gerrit:1072159|Generate special page name in English for central URLs (T374277)]], [[gerrit:1072176|IPInfoLogFormatter: Avoid unnecessary User object creation (T374526)]], [[gerrit:1071902|Add arbcom group to zhwiki (T374455)]], [[gerrit:1072177|Remove redundant oathauth-enable flag

Will be fixed within a few days on all wikis as the change is now in wmf.22.

Forgot about QA :D.

For QA you should be able to follow the testing steps but replace the URL in step 1 with https://se.wikibooks.org/wiki/Erenoam%C3%A1%C5%A1:Rievdadusat/126.110.226.230

Djackson-ctr subscribed.

QA has been completed and the new code changes have been implemented (When the user clicks View Full Log, that user will be redirected to the url https://meta.wikimedia.org/wiki/Special:Log?type=gblblock in the corresponding language of the user's wiki).

image.png (994×1 px, 177 KB)

image.png (962×1 px, 143 KB)

image.png (972×1 px, 115 KB)

image.png (953×1 px, 142 KB)