diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-08-13 05:13:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 05:13:36 +0200 |
commit | 97b3919ed4472afd294c117ed68a306d328a11cb (patch) | |
tree | afb48bd9e59821b841fafc3bcf61d1e5c802423f | |
parent | 6c5837380ab6585204b0ac7c9dec01c75709f4d8 (diff) | |
parent | 3215a9f1919b40b2ea8164da8637023c3cec9d8f (diff) | |
download | nextcloud-server-97b3919ed4472afd294c117ed68a306d328a11cb.tar.gz nextcloud-server-97b3919ed4472afd294c117ed68a306d328a11cb.zip |
Merge pull request #22182 from nextcloud/backport/21775/stable18
[stable18] Do not exit if available space cannot be determined on file transfer
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 34506760927..f47128a8d9f 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -190,7 +190,7 @@ class OwnershipTransferService { $output->writeln('Validating quota'); $size = $view->getFileInfo($sourcePath, false)->getSize(false); $freeSpace = $view->free_space($destinationUid . '/files/'); - if ($size > $freeSpace) { + if ($size > $freeSpace && $freeSpace !== FileInfo::SPACE_UNKNOWN) { $output->writeln('<error>Target user does not have enough free space available.</error>'); throw new \Exception('Execution terminated.'); } |