Last modified: 2014-07-08 02:43:36 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 T49282, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47282 - Wrong keys of Title::$titleCache as result of Title::newFromText() is not canonical
Wrong keys of Title::$titleCache as result of Title::newFromText() is not can...
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
мит
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-16 12:53 UTC by Sergey Nevmerzhitsky
Modified: 2014-07-08 02:43 UTC (History)
2 users (show)

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


Attachments

Description Sergey Nevmerzhitsky 2013-04-16 12:53:37 UTC
When Title::newFromText() called, $text variable used as key for $titleCache array. But every title can created from many text variants. For example "tEST", "Test" and "TEST" direct to one canonical title key "Test". However result of calling Title::newFromText() will different for this three variants because new Title instance will create for each variant and stored to $titleCache. Property $mDbkeyform will the same.

Continue work with system with this wrong $titleCache state create unexpected behaviour (Article::exists() results for example) when develop complicated extensions.
Comment 2 Jackmcbarn 2014-07-08 02:43:36 UTC
(In reply to Sergey Nevmerzhitsky from comment #0)
> "tEST", "Test" and "TEST" direct to one canonical title key "Test".
This isn't the case. "tEST" and "TEST" are the same, but "Test" isn't, since titles are case-sensitive except for the first letter.

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


Navigation
Links