From aacbb560ae5bbae3541e901915937cc3384353ef Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 11 Apr 2017 00:57:31 +0200 Subject: [PATCH] Add missing maintenance plugin to new DAV endpoint The `/remote.php/dav/` endpoint was not implementing the MaintenancePlugin. Thus when the instance was put into maintenance mode the endpoints were still accessible and delivered empty content. Sync clients really do love this. Signed-off-by: Lukas Reschke --- apps/dav/lib/Server.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index a5c1379eb7e..e0517477488 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -74,6 +74,9 @@ class Server { $root = new RootCollection(); $this->server = new \OCA\DAV\Connector\Sabre\Server($root); + // Add maintenance plugin + $this->server->addPlugin(new \OCA\DAV\Connector\Sabre\MaintenancePlugin(\OC::$server->getConfig())); + // Backends $authBackend = new Auth( \OC::$server->getSession(),