From f0a807ebc116f6ae492aa033ac8a47ef183758a5 Mon Sep 17 00:00:00 2001 From: "stereu :: Die Digitalisierer" Date: Thu, 19 Sep 2019 20:08:50 +0200 Subject: [PATCH] Added check for ability to write On some installations using ceph/smb/cifs shares the protocol does not support renaming on the fly. This causes the issue as linked. This fix added a check for this and disables part-file if needed. --- apps/dav/lib/Connector/Sabre/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php index dd25b046bcff9..38fa9d7bb43b5 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -149,7 +149,7 @@ public function put($data) { // mark file as partial while uploading (ignored by the scanner) $partFilePath = $this->getPartFileBasePath($this->path) . '.ocTransferId' . rand() . '.part'; - if (!$view->isCreatable($partFilePath) && $view->isUpdatable($this->path)) { + if ((!$view->isCreatable($partFilePath) && $view->isUpdatable($this->path)) || (!$view->isReadable($partFilePath))) { $needsPartFile = false; } }