Page MenuHomePhabricator

tracking category names messages may not expand {{NAMESPACE}} magic words relative to the right title
Closed, ResolvedPublic

Description

http://en.wikipedia.org/wiki/Category:Articles_with_missing_files should be limited to mainspace only pages, after preforming a null edit the pages are sorted correctly (there are three different categories, one for templates http://en.wikipedia.org/wiki/Category:Templates_with_missing_files , the one above for mainspace, and http://en.wikipedia.org/wiki/Category:Pages_with_missing_files for everything else). After some time the job queue comes around and re-parses a page and then its back in the articles category even though {{NAMESPACE}} should place it in the proper category.

<from the talkpage of the related message http://en.wikipedia.org/wiki/MediaWiki:Broken-file-category>

This doesn't appear to work reliably; the {{NAMESPACE}} etc get transformed by the generic message transformation and I'm not convinced it's consistently related to the namespace of the page being parsed. On a local test, for instance, when editing a template I see a background job queue item to rebuild links on the page using it -- which ends up labeling the page as a 'Template'. On the live site these'll be happening from background job queue runners, so not sure what title the message cache might think they're on. --brion (talk) 21:43, 6 October 2011 (UTC)


Version: 1.18.x
Severity: normal

Details

Reference
bz31469

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:53 PM
bzimport set Reference to bz31469.
bzimport added a subscriber: Unknown Object (MLST).

Add'l notes:

The tracking category gets added with addTrackingCategory, which simply takes the given message key and expands it with wfMsgForContent(), so whatever the MessageCache is hooked up to will get used.

sumanah wrote:

Clarifying the steps-to-reproduce from the original bug report:

http://en.wikipedia.org/wiki/Category:Templates_with_missing_files , http://en.wikipedia.org/wiki/Category:Articles_with_missing_files (as mentioned
above) for mainspace, and
http://en.wikipedia.org/wiki/Category:Pages_with_missing_files for everything
else).

fixed in r107623.

I'm going to open another bug (bug 33431) for how MessageCache should be using correct title during job queue jobs.