Page MenuHomePhabricator

Unable to complete page moves when then target is also being deleted
Closed, DuplicatePublic

Description

Reproduced on enwiki, testwiki

Steps to reproduce:

  1. Have 2 pages (e.g. https://test.wikipedia.org/wiki/20181130-a and https://test.wikipedia.org/wiki/20181130-b)
  2. Attempt to move the first page to the second, be told it exists
  3. Check the Yes delete and attempt again
  4. FAIL

Failure data from testwiki:

[XAFWBwpAMF0AALvlwU4AAABV] /w/index.php?title=Special:MovePage&action=submit MWException from line 473 of /srv/mediawiki/php-1.33.0-wmf.6/includes/MovePage.php: Failed to delete page-move revision: <OK, collected 1 error(s) on the way, no value set>
+------+---------------------------+------------------------------------------+
| 1 | cannotdelete | 20181130-b |
+------+---------------------------+------------------------------------------+

Backtrace:

#0 /srv/mediawiki/php-1.33.0-wmf.6/includes/MovePage.php(276): MovePage->moveToInternal(User, Title, string, boolean, array)
#1 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialMovepage.php(608): MovePage->move(User, string, boolean)
#2 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialMovepage.php(128): MovePageForm->doSubmit()
#3 /srv/mediawiki/php-1.33.0-wmf.6/extensions/Translate/tag/SpecialPageTranslationMovePage.php(143): MovePageForm->execute(string)
#4 /srv/mediawiki/php-1.33.0-wmf.6/includes/specialpage/SpecialPage.php(569): SpecialPageTranslationMovePage->execute(string)
#5 /srv/mediawiki/php-1.33.0-wmf.6/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
#6 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#7 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(862): MediaWiki->performRequest()
#8 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(517): MediaWiki->main()
#9 /srv/mediawiki/php-1.33.0-wmf.6/index.php(42): MediaWiki->run()
#10 /srv/mediawiki/w/index.php(3): include(string)
#11 {main}