From 17e5c03a02964a90e704070059fff61a85705d38 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. 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 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)) { -- 2.39.5