diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-05-14 14:02:32 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-05-14 14:02:32 +0200 |
commit | e0a136d34467de2d76494abfd6f9025d909e051b (patch) | |
tree | 8fb70ca195b3a62daa68a9cc2b081c665883ff4e /apps/files_sharing | |
parent | 1596a1fd32207840ba4f359bff38290077083b1a (diff) | |
download | nextcloud-server-e0a136d34467de2d76494abfd6f9025d909e051b.tar.gz nextcloud-server-e0a136d34467de2d76494abfd6f9025d909e051b.zip |
Show a empty response for GET on non-files instead of the Browser Plugin
As discussed in https://github.com/owncloud/core/pull/14151, we missed to add this to the `files_sharing` S2S public WebDAV backend though.
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/publicwebdav.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/publicwebdav.php b/apps/files_sharing/publicwebdav.php index 3be464c64f0..c2a16e933b3 100644 --- a/apps/files_sharing/publicwebdav.php +++ b/apps/files_sharing/publicwebdav.php @@ -48,7 +48,8 @@ $server->setBaseUri($baseuri); // Load plugins $defaults = new OC_Defaults(); $server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, $defaults->getName())); -$server->addPlugin(new \Sabre\DAV\Browser\Plugin(false)); // Show something in the Browser, but no upload +// 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()); $server->addPlugin(new \OC\Connector\Sabre\ExceptionLoggerPlugin('webdav', \OC::$server->getLogger())); |