]> source.dussan.org Git - nextcloud-server.git/commit
Improve CertificateManager to not be user context dependent
authorMorris Jobke <hey@morrisjobke.de>
Sun, 5 Jul 2020 12:31:19 +0000 (14:31 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 2 Nov 2020 23:13:01 +0000 (00:13 +0100)
commitdc479aae2d055dafddb250a382eb801a68d42afb
treedba601f780b38207e88b406da723467e87cf1411
parent65375320fb94fe3b7d0aaaecc9e66b7458ed6c1a
Improve CertificateManager to not be user context dependent

* removes the ability for users to import their own certificates (for external storage)
* reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions)

The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
12 files changed:
apps/dav/lib/CardDAV/SyncService.php
apps/files_sharing/lib/External/Manager.php
apps/files_sharing/lib/External/MountProvider.php
core/register_command.php
lib/private/Files/Storage/DAV.php
lib/private/Security/CertificateManager.php
lib/private/Server.php
lib/public/ICertificateManager.php
lib/public/IServerContainer.php
tests/lib/Http/Client/ClientTest.php
tests/lib/Security/CertificateManagerTest.php
tests/lib/ServerTest.php