server/tests
Christoph Wurst 55b5e13e15
Handle token insert conflicts
Env-based SAML uses the "Apache auth" mechanism to log users in. In this
code path, we first delete all existin auth tokens from the database,
before a new one is inserted. This is problematic for concurrent
requests as they might reach the same code at the same time, hence both
trying to insert a new row wit the same token (the session ID). This
also bubbles up and disables user_saml.

As the token might still be OK (both request will insert the same data),
we can actually just check if the UIDs of the conflict row is the same
as the one we want to insert right now. In that case let's just use the
existing entry and carry on.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-02 14:20:51 +01:00
..
acceptance Adjust acceptance tests to changes in link share menu behaviour 2019-08-29 10:19:03 +02:00
apps Validate the info.xml against the appstore schema file 2018-02-16 10:23:51 +01:00
Core Harden middleware check 2019-10-25 14:34:41 +00:00
data Mimetype list integrity check should not fail if it's changed (#15810) 2019-07-07 20:01:58 +02:00
docker Namespace and array syntax fixes 2017-03-19 14:52:54 -06:00
lib Handle token insert conflicts 2019-12-02 14:20:51 +01:00
objectstore make object prefix configurable 2016-11-14 15:10:56 +01:00
Settings fix updating and deleting authtokens 2019-10-05 10:35:46 +00:00
travis Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +02:00
ui-regression Remove fs package 2019-07-01 11:24:58 +02:00
apps.php Fix the tests again 2016-05-25 16:51:02 +02:00
bootstrap.php Require PHPUnit 6.5 or higher 2018-01-24 17:23:59 +01:00
drone-run-integration-tests.sh Only run integration tests when PHP was modified 2019-08-27 11:31:15 +02:00
drone-wait-objectstore.sh Kill objectstore CI if we can't create a file 2018-02-26 14:54:27 +01:00
enable_all.php Add tests 2018-01-25 13:44:47 +01:00
karma.config.js Fix domparser on phantomjs 2019-03-07 10:45:47 +01:00
phpunit-autotest-external.xml Adjust the phpunit config 2016-05-25 15:14:37 +02:00
phpunit-autotest.xml Do not cover composer folders for code coverage 2018-10-01 11:47:11 +02:00
preseed-config.php Cache tokens when using swift's v2 authentication 2019-01-13 19:59:48 +01:00
redis-cluster.config.php Fix drone 2017-07-14 15:04:18 +02:00
redis.config.php Fix drone 2017-07-14 15:04:18 +02:00
startsessionlistener.php Require PHPUnit 6.5 or higher 2018-01-24 17:23:59 +01:00