Page MenuHomePhabricator

Prevent CentralAuth from setting preferences for temporary accounts
Closed, ResolvedPublic3 Estimated Story Points

Description

Following T335971, it appears the extension is saving preferences for temporary users.
Update the code to treat temporary users like anon users.

Wherever these do something different based on whether a user is anonymous or registered, they may need updating (including comments).

Tests and comments should also be updated.

Notes
To help with searching:

In PHP preferences are saved via UserOptionsManager::saveOptions
In JS preferences are saved via methods defined on options.js: https://gerrit.wikimedia.org/g/mediawiki/core/+/809d4c9a9dd2cff6321cdae7a41e75b6c362cbbd/resources/src/mediawiki.api/options.js

Event Timeline

(Please add codebase project tags to tasks when possible, so such tasks can be found when looking for open tasks related to that codebase - thanks!)

AGueyte set the point value for this task to 3.Jun 6 2023, 5:58 PM
AGueyte changed the task status from Open to In Progress.Jun 16 2023, 11:07 AM

Change 931652 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/extensions/CentralAuth@master] Prevent CentralAuth from setting preferences for temporary accounts

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

Change 931652 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Prevent CentralAuth from setting preferences for temporary accounts

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

Change 931667 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/CentralAuth@master] SpecialCentralAutoLogin: Shift scope of $user->isNamed() check

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

Change 931667 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] SpecialCentralAutoLogin: Shift scope of $user->isNamed() check

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