Skip to content
Snippets Groups Projects
Commit 9032ce45 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #9266 from owncloud/fix_objectstore_etag_update

always regenerate etag when writing back file to objectstore
parents ebf93448 23fa75f5
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment