Last modified: 2011-09-18 05:03:51 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 T32843, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30843 - mediawiki.Title should not convert extensions (anything after the last full stop) to lower case
mediawiki.Title should not convert extensions (anything after the last full s...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Krinkle
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-10 07:51 UTC by Michael M.
Modified: 2011-09-18 05:03 UTC (History)
2 users (show)

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


Attachments
Qunit test (785 bytes, patch)
2011-09-10 07:51 UTC, Michael M.
Details

Description Michael M. 2011-09-10 07:51:13 UTC
Created attachment 9042 [details]
Qunit test

mediawiki.Title.js converts the extension (or what it thinks is the extension) to lowercase. This is only a good thing when you want to normalize user input for a new file, if you want to get information about an already existing file or the page is in some other namespace, converting things behind a dot to lowercase is the wrong behavior.

The patch adds a qunit test that fails at the moment, since "User:ABC.DEF" is converted to "User:ABC.def".
Comment 1 Krinkle 2011-09-18 04:39:03 UTC
MediaWiki doesn't convert extension as far as I know, so we shoudn't be doing this in JS either. Especially not for random suffixes that aren't to be recognized as extensions.
Comment 2 Krinkle 2011-09-18 05:03:51 UTC
Test added in r97405.

Bug fixed in r97406.

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


Navigation
Links