diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-07-10 13:15:20 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-07-10 13:28:33 +0200 |
commit | 6a783d9b085dab0674f7537c9cec219d175f0399 (patch) | |
tree | ad1c1044c711d70fe9cf1719de03de2c9c1553ff /lib/private/Server.php | |
parent | e31f474fec839079c8a1d436561ec1a4e32e5853 (diff) | |
download | nextcloud-server-6a783d9b085dab0674f7537c9cec219d175f0399.tar.gz nextcloud-server-6a783d9b085dab0674f7537c9cec219d175f0399.zip |
fix(Session): avoid race conditions on clustered setups
- re-stablishes old behaviour with cache to return null instead of throwing
an InvalidTokenException when the token is cached as non-existing
- token invalidation and re-generation are bundled in a DB transaction now
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index bcdf482f02d..7ac63bdb5b7 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -506,7 +506,7 @@ class Server extends ServerContainer implements IServerContainer { $c->get(ISecureRandom::class), $c->get('LockdownManager'), $c->get(LoggerInterface::class), - $c->get(IEventDispatcher::class) + $c->get(IEventDispatcher::class), ); /** @deprecated 21.0.0 use BeforeUserCreatedEvent event with the IEventDispatcher instead */ $userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) { |