]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix swift touch operation
authorVincent Petry <pvince81@owncloud.com>
Thu, 27 Mar 2014 11:34:30 +0000 (12:34 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 27 Mar 2014 11:34:30 +0000 (12:34 +0100)
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

index a6955d400f46fc7db0ba405bee0761d98a28b495..1337d9f581d30afa9bb5844c4749bbfbae319ba2 100644 (file)
@@ -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)) {