[Pkg-owncloud-commits] [owncloud] 04/74: Fix root path handling for WebDAV ext storage

David Prévot taffit at moszumanska.debian.org
Tue Dec 2 22:04:32 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit d859d1b6c758e6e1ee1214bb42a07b2b35fd84e4
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue Nov 11 15:20:36 2014 +0100

    Fix root path handling for WebDAV ext storage
    
    Added missing cleanPath() call that converts "/" to "" when calling
    SabreDAV. This is needed because SabreDAV will discard its base URL when
    passing "/".
---
 lib/private/files/storage/dav.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php
index fb3fd1e..76912b5 100644
--- a/lib/private/files/storage/dav.php
+++ b/lib/private/files/storage/dav.php
@@ -431,6 +431,7 @@ class DAV extends \OC\Files\Storage\Common {
 
 	public function getPermissions($path) {
 		$this->init();
+		$path = $this->cleanPath($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']);
@@ -475,6 +476,7 @@ class DAV extends \OC\Files\Storage\Common {
 	 */
 	public function hasUpdated($path, $time) {
 		$this->init();
+		$path = $this->cleanPath($path);
 		try {
 			$response = $this->client->propfind($this->encodePath($path), array(
 				'{DAV:}getlastmodified',

-- 
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