diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-27 12:34:30 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-27 18:39:57 +0100 |
commit | 17e5c03a02964a90e704070059fff61a85705d38 (patch) | |
tree | 4ee5add491a0161056928fc240ee0347abefffe6 /apps | |
parent | a31b37e7331befca348b97699bb71a9701081ed4 (diff) | |
download | nextcloud-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.php | 2 |
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)) { |