https://bugzilla.wikimedia.org/show_bug.cgi?id=36307

--- Comment #7 from Yuvi Panda <[email protected]> ---
The use case is when you want the raw data of a translated message used by
mediawiki. 

The particular case was, I was trying to find out the localized Main Pages of
all wikis. If you hit
https://ta.wikipedia.org/wiki/%E0%AE%AE%E0%AF%80%E0%AE%9F%E0%AE%BF%E0%AE%AF%E0%AE%BE%E0%AE%B5%E0%AE%BF%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AE%BF:Mainpage?action=view
you will see that it is returned as "முதற் பக்கம்", which is picked up from the
i18n cache. The logic for this page's contents seem to be: 1. if that
particular page exists (Mediawiki:<something>) return that, else return value
of <something> from message cache.

This mostly works for action=raw too - for example,
https://en.wikipedia.org/wiki/MediaWiki:Mainpage?action=raw returns appropriate
response, consistent with action=view

However,
https://ta.wikipedia.org/wiki/%E0%AE%AE%E0%AF%80%E0%AE%9F%E0%AE%BF%E0%AE%AF%E0%AE%BE%E0%AE%B5%E0%AE%BF%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AE%BF:Mainpage?action=raw
returns a 404 - the only change being action=view to action=raw. It turns out
that on tawiki, at some previous point the custom page existed, but was hence
deleted. Hence while action=view falls back appropriately to the i18n cache,
action=raw does not, and returns a 404.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to