[Pkg-owncloud-commits] [owncloud] 77/134: Fix swift touch operation
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:44:03 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 17e5c03a02964a90e704070059fff61a85705d38
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu Mar 27 12:34:30 2014 +0100
Fix swift touch operation
The touch() operation now uses "UpdateMetadata()" instead of "Update()"
which doesn't clear the object's contents.
This fixes syncing, as the sync client needs to use touch to update the
object's mtime.
Backport of 2a08e35 from master
---
apps/files_external/lib/swift.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index bb22e64..de2fda7 100644
--- a/apps/files_external/lib/swift.php
+++ b/apps/files_external/lib/swift.php
@@ -368,7 +368,7 @@ class Swift extends \OC\Files\Storage\Common {
'X-Object-Meta-Timestamp' => $mtime
)
);
- return $object->Update($settings);
+ return $object->UpdateMetadata($settings);
} else {
$object = $this->container->DataObject();
if (is_null($mtime)) {
--
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