Page MenuHomePhabricator

action=raw doesn't return empty file for nonexistent MediaWiki:Common.css
Closed, ResolvedPublic

Description

On a wiki without a MediaWiki:Common.css, action=raw (as called by the skin)
returns the strange content "<Common.css>" instead of an empty file,
resulting in an error on Firefox's JavaScript Console ("Error: Unexpected end of
file while searching for closing } of invalid rule set.").

*A nonexistent MediaWiki page should either return an empty file or a 404 error
(or both) when requested with action=raw
*Either the skin should not request MediaWiki:Common.css when it doesn't exist,
or an empty one should be created (MediaWiki default) (doing either would have
avoided this bug)


Version: 1.7.x
Severity: normal
OS: Linux
Platform: PC
URL: http://simple.wikiquote.org/w/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css&smaxage=2678400

Details

Reference
bz5903

Event Timeline

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

robchur wrote:

Fixed as part of r15015.