diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-27 12:34:30 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-27 12:34:30 +0100 |
commit | 2a08e35d72ef8d65960c0d3db4d233276c77eda7 (patch) | |
tree | efe9f472824bbec6ba2754dd84947444104a31e9 /apps/files_external | |
parent | 1469ce7b38fbd55a64fad05e95ca124ababdf3df (diff) | |
download | nextcloud-server-2a08e35d72ef8d65960c0d3db4d233276c77eda7.tar.gz nextcloud-server-2a08e35d72ef8d65960c0d3db4d233276c77eda7.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.
Diffstat (limited to 'apps/files_external')
-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 a6955d400f4..1337d9f581d 100644 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -374,7 +374,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)) { |