diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-11 11:08:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 11:08:03 +0200 |
commit | 5d3ecfdffdf97e7b7e67263dd582618c3e24e874 (patch) | |
tree | ca75fbbe0d9ca3f48e6b4664331e86f97b515920 /apps | |
parent | 85aded7f193bc5ff5863315102a4f68a9410b0bc (diff) | |
parent | 4e297d7a977c7129039246dfc9e78e882a5bf465 (diff) | |
download | nextcloud-server-5d3ecfdffdf97e7b7e67263dd582618c3e24e874.tar.gz nextcloud-server-5d3ecfdffdf97e7b7e67263dd582618c3e24e874.zip |
Merge pull request #21775 from nextcloud/bugfix/noid/transfer-object-storage
Do not exit if available space cannot be determined on file transfer
Diffstat (limited to 'apps')
-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 535822b999c..b04a53919ac 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -194,7 +194,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.'); } |