0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-03-16 17:24:10 +00:00
nextcloud_server/lib/private/User
Thomas Citharel f7e65b1751 Create the database user in a transaction
In OC\User\Manager::createUserFromBackend the newly created user is read
using getUserObject($uid, $backend) but that can cause causal read
issues (wrote in DB primary, not yet in secondary).

In OC\User\Database user backend the user cache is unset after the
insert, so it can't be used by getRealUID() (which is called by
getUserObject()).

To avoid that we make sure the user cache is repopulated in a
transaction.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-03-15 11:07:07 +00:00
..
Listeners Fix avatar cleanup on user delete 2022-09-19 21:36:50 +02:00
Backend.php Update php licenses 2021-06-04 22:02:41 +02:00
Database.php Create the database user in a transaction 2023-03-15 11:07:07 +00:00
DisplayNameCache.php Make DisplayNameCache return null if user doesn't exists 2022-08-16 14:10:05 +02:00
LazyUser.php Make DisplayNameCache return null if user doesn't exists 2022-08-16 14:10:05 +02:00
LoginException.php Update php licenses 2021-06-04 22:02:41 +02:00
Manager.php also cache backend for user in memory instead of always going to redis 2023-02-10 12:25:23 +01:00
NoUserException.php Update php licenses 2021-06-04 22:02:41 +02:00
Session.php feat: add event for failed logins 2022-11-24 21:24:21 +01:00
User.php fix: Recalculate storage statistics on updating the quota 2023-03-06 22:46:07 +00:00