Page MenuHomePhabricator

GlobalRename: TypeError: Argument 1 passed to MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameRequestStore::newFromId() must be of the type integer, string given
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 1 passed to MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameRequestStore::newFromId() must be of the type integer, string given, called in /srv/mediawiki/php-1.38.0-wmf.24/extensions/CentralAuth/inc
exception.trace
from /srv/mediawiki/php-1.38.0-wmf.24/extensions/CentralAuth/includes/GlobalRename/GlobalRenameRequestStore.php(137)
#0 /srv/mediawiki/php-1.38.0-wmf.24/extensions/CentralAuth/includes/Special/SpecialGlobalRenameQueue.php(291): MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameRequestStore->newFromId(string)
#1 /srv/mediawiki/php-1.38.0-wmf.24/extensions/CentralAuth/includes/Special/SpecialGlobalRenameQueue.php(131): MediaWiki\Extension\CentralAuth\Special\SpecialGlobalRenameQueue->handleProcessRequest(array)
#2 /srv/mediawiki/php-1.38.0-wmf.24/includes/specialpage/SpecialPage.php(671): MediaWiki\Extension\CentralAuth\Special\SpecialGlobalRenameQueue->execute(string)
#3 /srv/mediawiki/php-1.38.0-wmf.24/includes/specialpage/SpecialPageFactory.php(1378): SpecialPage->run(string)
#4 /srv/mediawiki/php-1.38.0-wmf.24/includes/MediaWiki.php(315): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#5 /srv/mediawiki/php-1.38.0-wmf.24/includes/MediaWiki.php(910): MediaWiki->performRequest()
#6 /srv/mediawiki/php-1.38.0-wmf.24/includes/MediaWiki.php(564): MediaWiki->main()
#7 /srv/mediawiki/php-1.38.0-wmf.24/index.php(53): MediaWiki->run()
#8 /srv/mediawiki/php-1.38.0-wmf.24/index.php(46): wfIndexMain()
#9 /srv/mediawiki/w/index.php(3): require(string)
#10 {main}
Impact

Unclear.

Notes

2 of these since deploy of 1.38.0-wmf.24 (T300200) to group1.

Details

Request URL
https://meta.wikimedia.org/wiki/Special:GlobalRenameQueue/request/

Event Timeline

brennen renamed this task from TypeError: Argument 1 passed to MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameRequestStore::newFromId() must be of the type integer, string given, called in /srv/mediawiki/php-1.38.0-wmf.24/extensions/CentralAuth/includes/Special/SpecialGlobalRenameQueue.php on line 291 to GlobalRename: TypeError: Argument 1 passed to MediaWiki\Extension\CentralAuth\GlobalRename\GlobalRenameRequestStore::newFromId() must be of the type integer, string given.Mar 2 2022, 10:10 PM
brennen added a project: User-brennen.
brennen moved this task from Backlog to Logs/Train on the User-brennen board.

Impact

Unclear.

There is no impact, it is just missing protection against bad input. A valid url would be https://meta.wikimedia.org/wiki/Special:GlobalRenameQueue/request/85988.

The error shows up when I go to https://meta.wikimedia.org/wiki/Special:GlobalRenameQueue/request/test, because 'test' is not an integer.

Change 768261 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/CentralAuth@master] Stop throwing fatals when invalid globalrename request id is given

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

Change 768261 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Stop throwing fatals when invalid globalrename request id is given

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