diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-07-09 15:02:21 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-08-11 08:14:03 +0200 |
commit | cb2f5a829e6791854433a1a39399ec1bc18f0b8f (patch) | |
tree | edd7764d778f96a8aa6cfcb3d9f35cd24284ef8e | |
parent | 24982808011df9d6aa14ced2d8790a18f4e2e747 (diff) | |
download | nextcloud-server-cb2f5a829e6791854433a1a39399ec1bc18f0b8f.tar.gz nextcloud-server-cb2f5a829e6791854433a1a39399ec1bc18f0b8f.zip |
Do not exit if available space cannot be determined on file transfer
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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..661f0d10431 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 !== -2) { $output->writeln('<error>Target user does not have enough free space available.</error>'); throw new \Exception('Execution terminated.'); } |