always regenerate etag when writing back file to objectstore

remotes/origin/ldap_group_count
Jörn Friedrich Dreyer 11 years ago
parent fd8b5680dd
commit 23fa75f5ac
  1. 2
      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 {

Loading…
Cancel
Save