From c576b5e2c3ad2cd582b057ae4652e1bad820b949 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 772dfcf7e8..d95632e518 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -70,6 +70,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(),