Merge pull request #27754 from nextcloud/backport/27586/stable20

[stable20] Reset checksum when writing files to object store
This commit is contained in:
MichaIng 2021-07-14 14:39:26 +02:00 committed by GitHub
commit 02fc2cc51c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -465,6 +465,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
$stat['mimetype'] = $mimetype;
$stat['etag'] = $this->getETag($path);
$stat['checksum'] = '';
$exists = $this->getCache()->inCache($path);
$uploadPath = $exists ? $path : $path . '.part';