Page MenuHomePhabricator

Error: Typed property MediaWiki\Extension\WebAuthn\Key\WebAuthnKey::$supportsPasswordless must not be accessed before initialization
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.46.0-wmf.4
  • timestamp: 2025-12-01T13:40:33.127Z
  • phpversion: 8.3.26
  • reqId: 23ec7804-5f07-4251-881f-4afc24069e0f
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   Error: Typed property MediaWiki\Extension\WebAuthn\Key\WebAuthnKey::$supportsPasswordless must not be accessed before initialization
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.4/extensions/WebAuthn/src/Key/WebAuthnKey.php(162)
#0/srv/mediawiki/php-1.46.0-wmf.4/extensions/WebAuthn/src/Authenticator.php(242)MediaWiki\Extension\WebAuthn\Key\WebAuthnKey->jsonSerialize()
#1/srv/mediawiki/php-1.46.0-wmf.4/extensions/WebAuthn/src/HTMLForm/WebAuthnAddKeyForm.php(100)MediaWiki\Extension\WebAuthn\Authenticator->continueRegistration(stdClass)
#2/srv/mediawiki/php-1.46.0-wmf.4/includes/HTMLForm/HTMLForm.php(812)MediaWiki\Extension\WebAuthn\HTMLForm\WebAuthnAddKeyForm->onSubmit(array, MediaWiki\Extension\WebAuthn\HTMLForm\WebAuthnAddKeyForm)
#3/srv/mediawiki/php-1.46.0-wmf.4/includes/HTMLForm/HTMLForm.php(693)MediaWiki\HTMLForm\HTMLForm->trySubmit()
#4/srv/mediawiki/php-1.46.0-wmf.4/includes/HTMLForm/HTMLForm.php(709)MediaWiki\HTMLForm\HTMLForm->tryAuthorizedSubmit()
#5/srv/mediawiki/php-1.46.0-wmf.4/extensions/OATHAuth/src/HTMLForm/OATHAuthOOUIHTMLForm.php(53)MediaWiki\HTMLForm\HTMLForm->show()
#6/srv/mediawiki/php-1.46.0-wmf.4/extensions/OATHAuth/src/Special/OATHManage.php(453)MediaWiki\Extension\OATHAuth\HTMLForm\OATHAuthOOUIHTMLForm->show(null)
#7/srv/mediawiki/php-1.46.0-wmf.4/extensions/OATHAuth/src/Special/OATHManage.php(371)MediaWiki\Extension\OATHAuth\Special\OATHManage->addCustomContent(MediaWiki\Extension\WebAuthn\Module\WebAuthn)
#8/srv/mediawiki/php-1.46.0-wmf.4/extensions/OATHAuth/src/Special/OATHManage.php(134)MediaWiki\Extension\OATHAuth\Special\OATHManage->addModuleHTML(MediaWiki\Extension\WebAuthn\Module\WebAuthn)
#9/srv/mediawiki/php-1.46.0-wmf.4/includes/SpecialPage/SpecialPage.php(711)MediaWiki\Extension\OATHAuth\Special\OATHManage->execute(null)
#10/srv/mediawiki/php-1.46.0-wmf.4/includes/SpecialPage/SpecialPageFactory.php(1743)MediaWiki\SpecialPage\SpecialPage->run(null)
#11/srv/mediawiki/php-1.46.0-wmf.4/includes/Actions/ActionEntryPoint.php(499)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#12/srv/mediawiki/php-1.46.0-wmf.4/includes/Actions/ActionEntryPoint.php(143)MediaWiki\Actions\ActionEntryPoint->performRequest()
#13/srv/mediawiki/php-1.46.0-wmf.4/includes/MediaWikiEntryPoint.php(184)MediaWiki\Actions\ActionEntryPoint->execute()
#14/srv/mediawiki/php-1.46.0-wmf.4/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#15/srv/mediawiki/w/index.php(3)require(string)
#16{main}
Impact

60 of these in the last week https://logstash.wikimedia.org/goto/b06262741f22c008721a944b385c2bb4

Notes

I encountered this while attempting to register a Yubikey

Event Timeline

Change #1213544 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/extensions/WebAuthn@master] Make sure WebAuthnKey::$supportsPasswordless is always initialized

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

Change #1213544 merged by jenkins-bot:

[mediawiki/extensions/WebAuthn@master] Make sure WebAuthnKey::$supportsPasswordless is always initialized

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

Change #1213562 had a related patch set uploaded (by Catrope; author: Catrope):

[mediawiki/extensions/WebAuthn@wmf/1.46.0-wmf.4] Make sure WebAuthnKey::$supportsPasswordless is always initialized

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

Change #1213562 merged by jenkins-bot:

[mediawiki/extensions/WebAuthn@wmf/1.46.0-wmf.4] Make sure WebAuthnKey::$supportsPasswordless is always initialized

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

Mentioned in SAL (#wikimedia-operations) [2025-12-01T23:38:00Z] <catrope@deploy2002> Started scap sync-world: Backport for [[gerrit:1213562|Make sure WebAuthnKey::$supportsPasswordless is always initialized (T411368)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-01T23:39:54Z] <catrope@deploy2002> catrope: Backport for [[gerrit:1213562|Make sure WebAuthnKey::$supportsPasswordless is always initialized (T411368)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-01T23:45:36Z] <catrope@deploy2002> Finished scap sync-world: Backport for [[gerrit:1213562|Make sure WebAuthnKey::$supportsPasswordless is always initialized (T411368)]] (duration: 07m 36s)

Catrope claimed this task.