From e906796f99eaaea26cfbb3055ccc27024470b410 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Wed, 13 Apr 2016 17:31:47 +0200 Subject: ask for share-permissions on propfind --- lib/private/files/storage/dav.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/files/storage') diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index df0f4c7e91d..a5555372250 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -246,7 +246,7 @@ class DAV extends Common { * * @throws NotFound */ - private function propfind($path) { + protected function propfind($path) { $path = $this->cleanPath($path); $cachedResponse = $this->statCache->get($path); if ($cachedResponse === false) { @@ -264,6 +264,7 @@ class DAV extends Common { '{DAV:}getcontentlength', '{DAV:}getcontenttype', '{http://owncloud.org/ns}permissions', + '{http://open-collaboration-services.org/ns}share-permissions', '{DAV:}resourcetype', '{DAV:}getetag', ) -- cgit v1.2.3 From 2edbb7d4bd65db3aae4c2243da58c987087d32a8 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Fri, 15 Apr 2016 10:52:53 +0200 Subject: if share-permissions exists we use this information as indicator to check if the file has changed or not --- lib/private/files/storage/dav.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/private/files/storage') diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php index a5555372250..8eebea1f3ba 100644 --- a/lib/private/files/storage/dav.php +++ b/lib/private/files/storage/dav.php @@ -742,6 +742,9 @@ class DAV extends Common { } if (!empty($etag) && $cachedData['etag'] !== $etag) { return true; + } else if (isset($response['{http://open-collaboration-services.org/ns}share-permissions'])) { + $sharePermissions = (int)$response['{http://open-collaboration-services.org/ns}share-permissions']; + return $sharePermissions !== $cachedData['permissions']; } else if (isset($response['{http://owncloud.org/ns}permissions'])) { $permissions = $this->parsePermissions($response['{http://owncloud.org/ns}permissions']); return $permissions !== $cachedData['permissions']; -- cgit v1.2.3