diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-09-23 19:57:07 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-28 21:12:50 +0200 |
commit | bd96c6aa38618dd7533ffbb0b6148c7e1522c1a6 (patch) | |
tree | f6de7a031bbc7cf7d0f0965b08f7d3d947e5b643 /apps/dav/lib/Server.php | |
parent | 2eaa2791b75f7c2c8c7892a5354f6e93fedaf396 (diff) | |
download | nextcloud-server-bd96c6aa38618dd7533ffbb0b6148c7e1522c1a6.tar.gz nextcloud-server-bd96c6aa38618dd7533ffbb0b6148c7e1522c1a6.zip |
Return ETag and OC-ETag in case of a move (#25683)
Downstreaming of https://github.com/owncloud/core/pull/25683
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index d67417a10d5..c49df197a89 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -30,14 +30,19 @@ namespace OCA\DAV; use OCA\DAV\CalDAV\Schedule\IMipPlugin; use OCA\DAV\CardDAV\ImageExportPlugin; +use OCA\DAV\Comments\CommentsPlugin; use OCA\DAV\Connector\Sabre\Auth; use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; +use OCA\DAV\Connector\Sabre\CopyEtagHeaderPlugin; use OCA\DAV\Connector\Sabre\DavAclPlugin; use OCA\DAV\Connector\Sabre\DummyGetResponsePlugin; +use OCA\DAV\Connector\Sabre\FakeLockerPlugin; use OCA\DAV\Connector\Sabre\FilesPlugin; use OCA\DAV\DAV\PublicAuth; +use OCA\DAV\Connector\Sabre\QuotaPlugin; use OCA\DAV\Files\BrowserErrorPagePlugin; use OCA\DAV\Files\CustomPropertiesBackend; +use OCA\DAV\SystemTag\SystemTagPlugin; use OCP\IRequest; use OCP\SabrePluginEvent; use Sabre\CardDAV\VCFExportPlugin; @@ -128,25 +133,27 @@ class Server { $this->server->addPlugin(new ImageExportPlugin(\OC::$server->getLogger())); // system tags plugins - $this->server->addPlugin(new \OCA\DAV\SystemTag\SystemTagPlugin( + $this->server->addPlugin(new SystemTagPlugin( \OC::$server->getSystemTagManager(), \OC::$server->getGroupManager(), \OC::$server->getUserSession() )); // comments plugin - $this->server->addPlugin(new \OCA\DAV\Comments\CommentsPlugin( + $this->server->addPlugin(new CommentsPlugin( \OC::$server->getCommentsManager(), \OC::$server->getUserSession() )); + $this->server->addPlugin(new CopyEtagHeaderPlugin()); + // Some WebDAV clients do require Class 2 WebDAV support (locking), since // we do not provide locking we emulate it using a fake locking plugin. if($request->isUserAgent([ '/WebDAVFS/', '/Microsoft Office OneNote 2013/', ])) { - $this->server->addPlugin(new \OCA\DAV\Connector\Sabre\FakeLockerPlugin()); + $this->server->addPlugin(new FakeLockerPlugin()); } if (BrowserErrorPagePlugin::isBrowserRequest($request)) { @@ -181,8 +188,8 @@ class Server { ) ); $this->server->addPlugin( - new \OCA\DAV\Connector\Sabre\QuotaPlugin($view)); - + new QuotaPlugin($view) + ); } }); } |