Last modified: 2010-10-15 01:39:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27459, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25459 - MIME type for some css files set incorrectly from payments server
MIME type for some css files set incorrectly from payments server
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
DonationInterface (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Arthur Richards
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-08 17:54 UTC by Ryan Kaldari
Modified: 2010-10-15 01:39 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Kaldari 2010-10-08 17:54:08 UTC
When loading the payment forms on payments.wikimedia.org I get several MIME type errors in Firefox. For example:

Error: The stylesheet https://payments.wikimedia.org/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000 was not loaded because its MIME type, "text/html", is not "text/css".

Since the file name is in the query string instead of in the main part of the URL, Apache doesn't know to serve it as text/css instead of text/html. To work around this problem on the cluster we specify the type in the link tag:

<link rel="stylesheet" href="/w/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=2678400&amp;action=raw&amp;maxage=2678400" type="text/css" media="all" />

On payments, however, the type is not being specified:

<link rel="stylesheet" href="/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" />

(This issue will be moot one the Recource Loader is deployed.)
Comment 1 Ryan Kaldari 2010-10-15 01:39:09 UTC
Fixed by whitelisting the pages so they can actually load.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links