Steps to Reproduce:
Use RevisionStore::getRevisionByTitle to attempt to obtain a RevisionRecord for a foreign wiki, for a title that exists both on the local and the foreign wiki, like so:
$revisionStoreFactory = MediaWiki\MediaWikiServices::getInstance()->getRevisionStoreFactory(); $foreignRevisionStore = $revisionStoreFactory->getRevisionStore( 'some_foreign_db_name' ); $title = new TitleValue( NS_MAIN, 'Main_Page' ); $revision = $foreignRevisionStore->getRevisionByTitle( $title );
Actual Results:
InvalidArgumentException with message: "The given Title (Main Page) does not belong to page ID XXX but actually belongs to YYY.", where XXX is the page ID of the title on the local wiki and YYY is the page ID of the title on the foreign wiki.
Expected Results:
A revision instance should be correctly returned for the foreign wiki.