Page MenuHomePhabricator

Using interwiki on {{PAGESIZE:}} stores external title in linktarget
Closed, ResolvedPublicBUG REPORT

Description

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

  • Edit a page and put {{PAGESIZE:mw:User:Test}} on the page and save (this requires the mw: prefix as interwiki in the interwiki table)
  • Maybe run the job queue to update the links table

What happens?:
Look at the table linktarget, a row with lt_namespace = 0 and lt_Title = 'User:Test' is stored, but external links (like interwiki links) should not be stored in the templatelinks table.

What should have happened instead?:
No row in the templatelinks and linktarget table

Software version (skip for WMF-hosted wikis like Wikipedia):

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

Event Timeline

Change 993167 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] Allow only local pages on pagesize parser function

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

Change 993167 merged by jenkins-bot:

[mediawiki/core@master] Allow only local pages on pagesize parser function

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

T361330 was a repeat of the same issue; Ia8fd49a6f9af18e32d47d1dcd052c5f33123f44b adds a deprecation to ParserOutput to try to catch these (first with a deprecation warning, later with a thrown exception) in a more systematic way.