summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-27 12:34:30 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-27 18:39:57 +0100
commit17e5c03a02964a90e704070059fff61a85705d38 (patch)
tree4ee5add491a0161056928fc240ee0347abefffe6 /apps
parenta31b37e7331befca348b97699bb71a9701081ed4 (diff)
downloadnextcloud-server-17e5c03a02964a90e704070059fff61a85705d38.tar.gz
nextcloud-server-17e5c03a02964a90e704070059fff61a85705d38.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/swift.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php
index bb22e64e968..de2fda782e1 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)) {