summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-11 11:08:03 +0200
committerGitHub <noreply@github.com>2020-08-11 11:08:03 +0200
commit5d3ecfdffdf97e7b7e67263dd582618c3e24e874 (patch)
treeca75fbbe0d9ca3f48e6b4664331e86f97b515920 /apps
parent85aded7f193bc5ff5863315102a4f68a9410b0bc (diff)
parent4e297d7a977c7129039246dfc9e78e882a5bf465 (diff)
downloadnextcloud-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.php2
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.');
}