Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-23 17:58:13 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-23 18:59:37 +0300
commit7916fc91b528eb6a7c6949c7f0ea417825da6153 (patch)
treec174c496e566d61e2d7146ebdd8af4a85fc85dde
parentb888c6146327d842e21988b0d90d6ade4f3a9435 (diff)
Fix ETAG returned by bulk uploadfix/fix-bulk-upload-etag
Refresh Node object to get fresh fileinfo data after touch Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/dav/lib/BulkUpload/BulkUploadPlugin.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/lib/BulkUpload/BulkUploadPlugin.php b/apps/dav/lib/BulkUpload/BulkUploadPlugin.php
index bb6baf48b56..6ab4b21a74b 100644
--- a/apps/dav/lib/BulkUpload/BulkUploadPlugin.php
+++ b/apps/dav/lib/BulkUpload/BulkUploadPlugin.php
@@ -90,6 +90,7 @@ class BulkUploadPlugin extends ServerPlugin {
$node = $this->userFolder->newFile($headers['x-file-path'], $content);
$node->touch($mtime);
+ $node = $this->userFolder->getById($node->getId())[0];
$writtenFiles[$headers['x-file-path']] = [
"error" => false,