[Pkg-owncloud-commits] [owncloud] 36/58: Fix DAV propfind call

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 15:58:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.6
in repository owncloud.

commit 7e7e2f209925923dbdf9b76cf56142716dc7f37e
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Fri Jul 10 15:23:43 2015 +0200

    Fix DAV propfind call
---
 lib/private/files/storage/dav.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php
index 1385c08..c97a0e5 100644
--- a/lib/private/files/storage/dav.php
+++ b/lib/private/files/storage/dav.php
@@ -468,7 +468,7 @@ class DAV extends \OC\Files\Storage\Common {
 	public function getPermissions($path) {
 		$this->init();
 		$path = $this->cleanPath($path);
-		$response = $this->propfind($path);
+		$response = $this->client->propfind($this->encodePath($path), array('{http://owncloud.org/ns}permissions'));
 		if (isset($response['{http://owncloud.org/ns}permissions'])) {
 			return $this->parsePermissions($response['{http://owncloud.org/ns}permissions']);
 		} else if ($this->is_dir($path)) {
@@ -484,7 +484,7 @@ class DAV extends \OC\Files\Storage\Common {
 	public function getETag($path) {
 		$this->init();
 		$path = $this->cleanPath($path);
-		$response = $this->propfind($path);
+		$response = $this->client->propfind($this->encodePath($path), array('{DAV:}getetag'));
 		if (isset($response['{DAV:}getetag'])) {
 			return trim($response['{DAV:}getetag'], '"');
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list