Page MenuHomePhabricator

DiscussionToolsPageInfo: RuntimeException: The revision x belongs to a deleted page.
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   RuntimeException: The revision #250513713 belongs to a deleted page. You can [//de.wikipedia.org/w/index.php?title=Spezial:Wiederherstellen&target=Benutzer_Diskussion:2003:D7:1F25:1D00:4064:9088:67B7:8482&timestamp=202411200946
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.3/extensions/DiscussionTools/includes/Hooks/HookUtils.php(162)
#0/srv/mediawiki/php-1.44.0-wmf.3/extensions/DiscussionTools/includes/ApiDiscussionToolsPageInfo.php(116)MediaWiki\Extension\DiscussionTools\Hooks\HookUtils::parseRevisionParsoidHtml(MediaWiki\Revision\RevisionStoreRecord, string)
#1/srv/mediawiki/php-1.44.0-wmf.3/extensions/DiscussionTools/includes/ApiDiscussionToolsPageInfo.php(48)MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsPageInfo->getThreadItemSet(array)
#2/srv/mediawiki/php-1.44.0-wmf.3/includes/api/ApiMain.php(1975)MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsPageInfo->execute()
#3/srv/mediawiki/php-1.44.0-wmf.3/includes/api/ApiMain.php(943)MediaWiki\Api\ApiMain->executeAction()
#4/srv/mediawiki/php-1.44.0-wmf.3/includes/api/ApiMain.php(914)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#5/srv/mediawiki/php-1.44.0-wmf.3/includes/api/ApiEntryPoint.php(153)MediaWiki\Api\ApiMain->execute()
#6/srv/mediawiki/php-1.44.0-wmf.3/includes/MediaWikiEntryPoint.php(200)MediaWiki\Api\ApiEntryPoint->execute()
#7/srv/mediawiki/php-1.44.0-wmf.3/api.php(44)MediaWiki\MediaWikiEntryPoint->run()
#8/srv/mediawiki/w/api.php(3)require(string)
#9{main}
Impact
Notes

The special page does not accept revision id, but the underlying API does and it fails with runtime exception if the revision was deleted.

The message is also wrong as it claims the user can view the revision even if they cannot.

Previously the Compare api module was patched for the same issue: T362814

Event Timeline

Change #1093303 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/extensions/DiscussionTools@master] ApiDiscussionToolsPageInfo: Show nice error for deleted revisions

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

Ammarpad changed the subtype of this task from "Bug Report" to "Production Error".Wed, Nov 20, 11:22 AM

Change #1093303 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] ApiDiscussionToolsPageInfo: Show nice error for deleted revisions

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

matmarex assigned this task to Ammarpad.