Last modified: 2011-04-14 15:13: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 T18839, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16839 - cleanupTitles and namespaceDupes shouldn't consider 'Special' or 'Media' valid title targets
cleanupTitles and namespaceDupes shouldn't consider 'Special' or 'Media' vali...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
https://bugzilla.wikimedia.org/show_b...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-30 17:04 UTC by Brion Vibber
Modified: 2011-04-14 15:13 UTC (History)
2 users (show)

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


Attachments

Description Brion Vibber 2008-12-30 17:04:31 UTC
Bug 16666 showed an instanced where page titles matching an updated 'Media' namespace name got reassigned into namespace -2 in the database by a cleanupTitles run, making them inaccessible until fixed manually.

Special and Media NSs should not be considered valid targets by these cleanup scripts; they should be given the same treatment as invalid titles or interwiki conflicts.
Comment 1 Aaron Schulz 2009-01-02 19:56:10 UTC
Fixed in r45335, 45336
Comment 2 Brion Vibber 2009-01-06 23:13:40 UTC
Hmm... Testing with cleanupTitles:

shortwiki 2009-01-06 23:05:59: page 1267 (Media:Joemomma) doesn't match self.
shortwiki 2009-01-06 23:05:59: DRY RUN: would rename 1267 (0,'Media:Joemomma') to (0,'Joemomma')

shortwiki 2009-01-06 23:06:47: page 1267 (Special:Joemomma) doesn't match self.
shortwiki 2009-01-06 23:06:47: DRY RUN: would rename 1267 (0,'Special:Joemomma') to (0,'Joemomma')

This is just dropping the namespace, which would probably be sub-ideal if the text was intended to be part of the original title.


Compare with current handling of a conflict with an interwiki prefix:

shortwiki 2009-01-06 23:07:26: page 1267 (Wikipedia:Joemomma) doesn't match self.
shortwiki 2009-01-06 23:07:26: DRY RUN: would rename 1267 (0,'Wikipedia:Joemomma') to (0,'Broken/wikipedia:Joemomma')


Note that namespaceDupes has different handling of that case, also including the original text:

Checking interwiki prefix: "Wikipedia"
... 1 conflicts detected:
... 1267 (0,"Wikipedia:Joemomma") -> (0,"Wikipedia-Joemomma") [[Wikipedia-Joemomma]]


Probably we should make sure that both cleanup scripts perform the same cleanup here...

namespacceDupes is at least now refusing to normalize the title record into -2 or -1 namespaces, so that's a good thing. :) Probably should let it handle them in some way, though, as is done for the interwiki case.

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


Navigation
Links