Page MenuHomePhabricator

[Regression] An error occurred while changing your watchlist settings for [[Special:WhatLinksHere/Example]]
Closed, ResolvedPublic

Description

If I go to a page such as
https://en.wikipedia.org/wiki/Special:WhatLinksHere/Example
and click on watch I always get
"An error occurred while changing your watchlist settings for "[[Special:WhatLinksHere/Example]]"."

I don't remember seing this on MW 1.18.


Version: 1.19
Severity: normal
URL: https://en.wikipedia.org/wiki/Special:WhatLinksHere/Example

Details

Reference
bz34972

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:12 AM
bzimport set Reference to bz34972.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 10202
proposed patch

AJAX watching did not work on Special:MovePage and Special:WhatLinksHere
because the API requests would contain the name of the special page
instead of a wiki page's name; adding a configuration variable with that
information (and using it when watching pages via AJAX) can fix this problem.

At least in Wikimedia's case, logged-in users (who are the only users able
to watch pages) bypass the Squid cache, so using the newly introduced
variable should not pose a problem.

attachment fix_bug34972.patch ignored as obsolete

Created attachment 10203
proposed patch

Fixing my patch. MediaWiki still sends 304 Not Modified headers, so the JavaScript would still have to fall back to wgPageName if necessary.

Attached:

Thanks for the patch! Applied in trunk r113737

Removing patch, need-review keywords