Page MenuHomePhabricator

ApiMove throws exception on invalid talk space
Closed, ResolvedPublic

Description

When using ApiMove, if the destination has no talk space (e.g., Media or Special) and talk page moves are enabled, the move will throw an exception.

From: User:TestCase
To: Special:TestCase
Code: internal_api_error_MWException
Info: [WFgcZdvWFRoAjAYF8rhTdgAAABE] Exception Caught: MWNamespace::getTalk does not make any sense for given namespace -1

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 19 2016, 5:47 PM
Anomie claimed this task.Dec 19 2016, 7:16 PM
Anomie moved this task from Unsorted to Needs Review on the MediaWiki-API board.

Change 328210 had a related patch set uploaded (by Anomie):
ApiMove: Fix fatal when attempting to move to a namespace with no talkpages

https://gerrit.wikimedia.org/r/328210

Change 328210 merged by jenkins-bot:
ApiMove: Fix fatal when attempting to move to a namespace with no talkpages

https://gerrit.wikimedia.org/r/328210

Anomie closed this task as Resolved.Dec 21 2016, 3:45 PM