Page MenuHomePhabricator

Invalid titles cannot be unwatched via Special:Watchlist/edit
Closed, ResolvedPublic

Description

If you watchlist a page with a name beginning with "Talk:Foo:", where "Foo" is a
namespace prefix such as "User" or "Image", the page cannot be unwatched via
Special:Watchlist/edit, since it will be listed without the "Talk:" prefix.
Such pages are occasionally created, usually by mistake, and may end up in the
watchlists of new page patrollers.

Simply including the "Talk:" prefix in the checkbox value attribute in such
cases would be sufficient to fix the problem.

http://bugzilla.wikimedia.org/show_bug.cgi?id=2871 is related to this bug, but
neither depends on nor blocks it.


Version: unspecified
Severity: minor
URL: http://wikimania2006.wikimedia.org/wiki/Talk:En:

Details

Reference
bz5280

Related Objects

Event Timeline

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

gangleri wrote:

Hallo Ilmari,

This aplieas also for interwiki prefixes. See:
http://wikimania2006.wikimedia.org/w/index.php?title=Talk:En:&action=watch
http://wikimania2006.wikimedia.org/wiki/Special:Watchlist/edit
Use
http://wikimania2006.wikimedia.org/w/index.php?title=Talk:En:&action=unwatch
to remove 'Talk:En:' from the watchlist.

Because 'User:', 'Image:', etc. '<interwiki_prefix>:' are invalid titles I would
suggest that 'talk:User:', 'talk:Image:', etc. 'talk:<interwiki_prefix>:' should
be invalid titles as well. This is probably another bug / request.

"complications"
http://wikimania2006.wikimedia.org/wiki/Talk:Special:Allpages
is a title which reminds
Bug 509: Multiple namespaces confuses some users.

best regards reinhardt [[user:gangleri]]

Such titles are now invalid as of r45389

OK, someone can run cleanupWatchlist.php to clear these out

This is doing really weird things, like normalizing 'Talk:Wikipedia:Foo' to 'Wikipedia:Talk:Foo' which then redirects me to 'Talk:Foo' at Wikipedia.

Need to create some test cases for this if it's redone.

Reverted in r45479

I assume (In reply to comment #4)

This is doing really weird things, like normalizing 'Talk:Wikipedia:Foo' to
'Wikipedia:Talk:Foo' which then redirects me to 'Talk:Foo' at Wikipedia.

I assume that's on a default install, where "wikipedia" is an interwiki prefix? I'm not sure what it should do, then, given that "wikipedia:Foo" is not a valid local title, and thus cannot meaningfully have a local talk page.

...but yes, it's probably broken: if I tried that on my Finnish-language test wiki, it would turn "Keskustelu:Wikipedia:Foo" into "wikipedia:Keskustelu:Foo" and then try to go to "Keskustelu:Foo" on the _English_ Wikipedia. Probably it should just treat titles of the form "Talk:interwiki:Foo" as invalid.

(This was redone in r45780)

Better, but not quite there; it's still allowing pages like 'Talk:Wikipedia:Foo', for which 'Wikipedia:Foo' is an interwiki link.

Changing component to "Watchlist"

mike.lifeguard+bugs wrote:

(In reply to comment #7)

(This was redone in r45780)

Better, but not quite there; it's still allowing pages like
'Talk:Wikipedia:Foo', for which 'Wikipedia:Foo' is an interwiki link.

"not quite there" sounds like more coding is needed - is the shell keyword appropriate in that case?

Rather -- shell tag indicates a need to run a database cleanup to clear out existing bad entries. This bug also includes fixups to forbid the half-bogus pages to begin with, which is not a shell issue.

This also applies for custom namespaces - if you watchlist a page in a pseudonamespace, and that pseudonamespace is later added as a custom namespace, you end up with one of these invalid watchlist entries.

These titles can be removed in Special:Watchlist/raw by copying the list of titles into your text editor of choice and removing the offending title(s) from the pasted list, blanking the list in Special:Watchlist/raw and saving it (thus blanking your watchlist), and then pasting the modified list back into Special:Watchlist/raw and saving again.

Pseudonamespaces may not be much of a problem on Wikimedia wikis, but are more so on Wikia (where I observed this variant of the bug and figured out the solution), and definitely on other third-party installations.

  • Bug 24280 has been marked as a duplicate of this bug. ***