summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v1/publicwebdav.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-11-13 11:47:32 +0100
committerLukas Reschke <lukas@owncloud.com>2015-11-13 23:31:08 +0100
commita3fc40921b20a3fcc1c7260f4abfcadc5a8c1d13 (patch)
treeb359e30824d121cf2004ae4a048710d68a6ecbee /apps/dav/appinfo/v1/publicwebdav.php
parent1e9203cdef7009ef129f0f3e3db6a326d3f4db12 (diff)
downloadnextcloud-server-a3fc40921b20a3fcc1c7260f4abfcadc5a8c1d13.tar.gz
nextcloud-server-a3fc40921b20a3fcc1c7260f4abfcadc5a8c1d13.zip
Add fake locker plugin for WebDAVFS
WebDAVFS as used by Finder requires a Class 2 compatible WebDAV server. This change introduces a fake locking provider which will simply advertise Locking support when a request originates from WebDAVFS. It will also return successful LOCK and UNLOCK responses.
Diffstat (limited to 'apps/dav/appinfo/v1/publicwebdav.php')
-rw-r--r--apps/dav/appinfo/v1/publicwebdav.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php
index 5bdfd94e658..cf0488038d3 100644
--- a/apps/dav/appinfo/v1/publicwebdav.php
+++ b/apps/dav/appinfo/v1/publicwebdav.php
@@ -39,7 +39,8 @@ $serverFactory = new OCA\DAV\Connector\Sabre\ServerFactory(
\OC::$server->getUserSession(),
\OC::$server->getMountManager(),
\OC::$server->getTagManager(),
- \OC::$server->getEventDispatcher()
+ \OC::$server->getEventDispatcher(),
+ \OC::$server->getRequest()
);
$requestUri = \OC::$server->getRequest()->getRequestUri();