From 2a08e35d72ef8d65960c0d3db4d233276c77eda7 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 27 Mar 2014 12:34:30 +0100 Subject: [PATCH] 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. --- 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 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)) { -- 2.39.5