diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-16 09:38:36 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-16 09:38:36 +0200 |
commit | e0992c129732b352338b1f7aec16d1108fc26011 (patch) | |
tree | 7495fd0ee081a7c57e09cdc894f9aa9fb207f07e | |
parent | 6c9d957245cf25bd7907c6d85d3bb89e739af0c6 (diff) | |
download | nextcloud-server-e0992c129732b352338b1f7aec16d1108fc26011.tar.gz nextcloud-server-e0992c129732b352338b1f7aec16d1108fc26011.zip |
Check for maintenance mode first so we send the 503 instead of login verification
-rw-r--r-- | lib/private/connector/sabre/serverfactory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/serverfactory.php b/lib/private/connector/sabre/serverfactory.php index 86f60633541..042cc051d35 100644 --- a/lib/private/connector/sabre/serverfactory.php +++ b/lib/private/connector/sabre/serverfactory.php @@ -63,12 +63,12 @@ class ServerFactory { // Load plugins $defaults = new \OC_Defaults(); + $server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin($this->config)); $server->addPlugin(new \OC\Connector\Sabre\BlockLegacyClientPlugin($this->config)); $server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName())); // FIXME: The following line is a workaround for legacy components relying on being able to send a GET to / $server->addPlugin(new \OC\Connector\Sabre\DummyGetResponsePlugin()); $server->addPlugin(new \OC\Connector\Sabre\FilesPlugin($objectTree)); - $server->addPlugin(new \OC\Connector\Sabre\MaintenancePlugin($this->config)); $server->addPlugin(new \OC\Connector\Sabre\ExceptionLoggerPlugin('webdav', $this->logger)); $server->addPlugin(new \OC\Connector\Sabre\LockPlugin($objectTree)); |