]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add missing maintenance plugin to new DAV endpoint 4290/head
authorLukas Reschke <lukas@statuscode.ch>
Mon, 10 Apr 2017 22:57:31 +0000 (00:57 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 10 Apr 2017 23:00:12 +0000 (01:00 +0200)
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 <lukas@statuscode.ch>
apps/dav/lib/Server.php

index 772dfcf7e87d732bd9c63e1f720224c606275ace..d95632e518f198c5cfc384ed8a5a01f361dc83a4 100644 (file)
@@ -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(),