server/tests
Christoph Wurst 0299ea0a96
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-11-26 12:07:12 +01:00
..
acceptance Accept incoming shares in acceptance tests 2019-11-20 21:15:46 +01:00
apps Validate the info.xml against the appstore schema file 2018-02-16 10:23:51 +01:00
Core Some php-cs fixes 2019-11-22 20:52:10 +01: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-11-26 12:07:12 +01:00
objectstore make object prefix configurable 2016-11-14 15:10:56 +01: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 Move settings to an app 2019-09-28 09:39:28 +00: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