Page MenuHomePhabricator

TypeError: Argument 1 passed to MediaWiki\Extension\CentralAuth\CentralAuthUtilityService::detokenize() must be of the type string, null given, called in /srv/mediawiki/php-1.41.0-wmf.25/extensions/CentralAuth/includes/Special/
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   TypeError: Argument 1 passed to MediaWiki\Extension\CentralAuth\CentralAuthUtilityService::detokenize() must be of the type string, null given, called in /srv/mediawiki/php-1.41.0-wmf.25/extensions/CentralAuth/includes/Special/
error.stack_trace
from /srv/mediawiki/php-1.41.0-wmf.25/extensions/CentralAuth/includes/CentralAuthUtilityService.php(148)
#0 /srv/mediawiki/php-1.41.0-wmf.25/extensions/CentralAuth/includes/Special/SpecialCentralAutoLogin.php(761): MediaWiki\Extension\CentralAuth\CentralAuthUtilityService->detokenize(NULL, string, MediaWiki\Extension\CentralAuth\CentralAuthSessionManager)
#1 /srv/mediawiki/php-1.41.0-wmf.25/extensions/CentralAuth/includes/Special/SpecialCentralAutoLogin.php(724): MediaWiki\Extension\CentralAuth\Special\SpecialCentralAutoLogin->doFinalOutput(boolean, string, string)
#2 /srv/mediawiki/php-1.41.0-wmf.25/includes/specialpage/SpecialPage.php(701): MediaWiki\Extension\CentralAuth\Special\SpecialCentralAutoLogin->execute(string)
#3 /srv/mediawiki/php-1.41.0-wmf.25/includes/specialpage/SpecialPageFactory.php(1566): SpecialPage->run(string)
#4 /srv/mediawiki/php-1.41.0-wmf.25/includes/MediaWiki.php(344): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#5 /srv/mediawiki/php-1.41.0-wmf.25/includes/MediaWiki.php(943): MediaWiki->performRequest()
#6 /srv/mediawiki/php-1.41.0-wmf.25/includes/MediaWiki.php(591): MediaWiki->main()
#7 /srv/mediawiki/php-1.41.0-wmf.25/index.php(50): MediaWiki->run()
#8 /srv/mediawiki/php-1.41.0-wmf.25/index.php(46): wfIndexMain()
#9 /srv/mediawiki/w/index.php(3): require(string)
#10 {main}
Impact
Notes

Only three occurred at:

Sep 6, 2023 @ 08:15:25.728mediawiki
Sep 6, 2023 @ 08:16:34.458wikidata
Sep 6, 2023 @ 08:17:16.876commons

Details

MediaWiki Version
1.41.0-wmf.25
Request URL
https://commons.wikimedia.org/wiki/Special:CentralAutoLogin/setCookies?mobile=*&proto=*&type=*

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I think someone would have to manually edit an URL for this to happen. It should still be fixed, but the severity is minimal.

Krinkle triaged this task as High priority.Sep 11 2023, 1:22 PM

Change 961969 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@master] Fix handling of missing returnUrlToken

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

Change 961969 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Fix handling of missing returnUrlToken

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