From cee3f612f2a15ee6b3a97ec7cbb976b0fb8a6d56 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 25 Jan 2019 18:38:01 +0100 Subject: [PATCH] Fix S3 handling Fixes #13062 S3 requires seekable streams to calculate the SHA256 checksum. Since the assembly stream (from the chunking) isn't seekable we have to find a way around this. For now this just disables the use of writing a stream directly until we have a better fix. Signed-off-by: Roeland Jago Douma --- 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 f948f0f552d31..c4b9fbff08d72 100644 --- a/apps/dav/lib/Connector/Sabre/File.php +++ b/apps/dav/lib/Connector/Sabre/File.php @@ -165,7 +165,7 @@ public function put($data) { $this->changeLock(ILockingProvider::LOCK_EXCLUSIVE); } - if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) { + if (false && $partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) { $count = $partStorage->writeStream($internalPartPath, $data); $result = $count > 0; if ($result === false) {