Steps to replicate the issue (include links if applicable):
- Login into Wikitech (using username + password)
- in the settings click on Multi-factor-auth
- provide username + password again to configure the MFA
- get the following error message: [0030bbeb-12ea-4880-bbce-1e4f25226a58] 2023-04-04 07:56:24: Fatal exception of type "MWException" (instead of the configuration dialog)
What happens?:
- get the following error message: [0030bbeb-12ea-4880-bbce-1e4f25226a58] 2023-04-04 07:56:24: Fatal exception of type "MWException" when trying to login with username + password
What should have happened instead?:
- the configuration dialog should give me possibilities to configure the MFA (or to cancel it)
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- I am using Firefox 111.0
Error
- mwversion: 1.41.0-wmf.2
- reqId: 0030bbeb-12ea-4880-bbce-1e4f25226a58
- Find reqId in Logstash
[{reqId}] {exception_url} MWException: CAS update failed on user_touched. The version of the user to be saved is older than the current version.
from /srv/mediawiki/php-1.41.0-wmf.2/includes/user/User.php(2598) #0 /srv/mediawiki/php-1.41.0-wmf.2/includes/libs/rdbms/database/Database.php(2610): User->{closure}(Wikimedia\Rdbms\DatabaseMysqli, string) #1 /srv/mediawiki/php-1.41.0-wmf.2/includes/libs/rdbms/database/DBConnRef.php(119): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure) #2 /srv/mediawiki/php-1.41.0-wmf.2/includes/libs/rdbms/database/DBConnRef.php(680): Wikimedia\Rdbms\DBConnRef->__call(string, array) #3 /srv/mediawiki/php-1.41.0-wmf.2/includes/user/User.php(2610): Wikimedia\Rdbms\DBConnRef->doAtomicSection(string, Closure) #4 /srv/mediawiki/php-1.41.0-wmf.2/extensions/LdapAuthentication/includes/LdapAuthenticationPlugin.php(1261): User->saveSettings() #5 /srv/mediawiki/php-1.41.0-wmf.2/extensions/LdapAuthentication/includes/LdapPrimaryAuthenticationProvider.php(133): LdapAuthenticationPlugin->updateUser(User) #6 /srv/mediawiki/php-1.41.0-wmf.2/includes/HookContainer/HookContainer.php(338): LdapPrimaryAuthenticationProvider->onUserLoggedIn(User) #7 /srv/mediawiki/php-1.41.0-wmf.2/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array) #8 /srv/mediawiki/php-1.41.0-wmf.2/includes/HookContainer/HookRunner.php(4335): MediaWiki\HookContainer\HookContainer->run(string, array) #9 /srv/mediawiki/php-1.41.0-wmf.2/includes/auth/AuthManager.php(2573): MediaWiki\HookContainer\HookRunner->onUserLoggedIn(User) #10 /srv/mediawiki/php-1.41.0-wmf.2/includes/auth/AuthManager.php(793): MediaWiki\Auth\AuthManager->setSessionDataForUser(User, boolean) #11 /srv/mediawiki/php-1.41.0-wmf.2/includes/auth/AuthManager.php(462): MediaWiki\Auth\AuthManager->continueAuthentication(array) #12 /srv/mediawiki/php-1.41.0-wmf.2/includes/specialpage/AuthManagerSpecialPage.php(374): MediaWiki\Auth\AuthManager->beginAuthentication(array, string) #13 /srv/mediawiki/php-1.41.0-wmf.2/includes/specialpage/AuthManagerSpecialPage.php(506): AuthManagerSpecialPage->performAuthenticationStep(string, array) #14 /srv/mediawiki/php-1.41.0-wmf.2/includes/htmlform/HTMLForm.php(744): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm) #15 /srv/mediawiki/php-1.41.0-wmf.2/includes/specialpage/AuthManagerSpecialPage.php(437): HTMLForm->trySubmit() #16 /srv/mediawiki/php-1.41.0-wmf.2/includes/specialpage/LoginSignupSpecialPage.php(323): AuthManagerSpecialPage->trySubmit() #17 /srv/mediawiki/php-1.41.0-wmf.2/includes/specialpage/SpecialPage.php(701): LoginSignupSpecialPage->execute(NULL) #18 /srv/mediawiki/php-1.41.0-wmf.2/includes/specialpage/SpecialPageFactory.php(1491): SpecialPage->run(NULL) #19 /srv/mediawiki/php-1.41.0-wmf.2/includes/MediaWiki.php(328): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext) #20 /srv/mediawiki/php-1.41.0-wmf.2/includes/MediaWiki.php(926): MediaWiki->performRequest() #21 /srv/mediawiki/php-1.41.0-wmf.2/includes/MediaWiki.php(579): MediaWiki->main() #22 /srv/mediawiki/php-1.41.0-wmf.2/index.php(50): MediaWiki->run() #23 /srv/mediawiki/php-1.41.0-wmf.2/index.php(46): wfIndexMain() #24 /srv/mediawiki/w/index.php(3): require(string) #25 {main}