diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-27 18:49:06 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-27 18:49:06 +0200 |
commit | 23fa75f5acfbef0b5e3d93128c8c76aee73044dd (patch) | |
tree | 7dd287aa153739054f638aac4990a7a273df87d7 /lib/private/files/objectstore | |
parent | fd8b5680dd826cf98df3b11b3a079dc70147a2c0 (diff) | |
download | nextcloud-server-23fa75f5acfbef0b5e3d93128c8c76aee73044dd.tar.gz nextcloud-server-23fa75f5acfbef0b5e3d93128c8c76aee73044dd.zip |
always regenerate etag when writing back file to objectstore
Diffstat (limited to 'lib/private/files/objectstore')
-rw-r--r-- | lib/private/files/objectstore/objectstorestorage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index 85f43b90cbb..0292d777064 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -385,7 +385,6 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { if (empty($stat)) { // create new file $stat = array( - 'etag' => $this->getETag($path), 'permissions' => \OCP\PERMISSION_ALL, ); } @@ -395,6 +394,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { $stat['mtime'] = $mTime; $stat['storage_mtime'] = $mTime; $stat['mimetype'] = \OC_Helper::getMimeType($tmpFile); + $stat['etag'] = $this->getETag($path); $fileId = $this->getCache()->put($path, $stat); try { |