Skip to content

Commit aeeea8c

Browse files
come-ncnfebe
authored andcommitted
fix: Fix orphan shares blocking moving other shares
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 418e422 commit aeeea8c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/private/Files/View.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,12 @@ private function targetIsNotShared(string $user, string $targetPath): bool {
19091909
}, $providers));
19101910

19111911
foreach ($shares as $share) {
1912-
$sharedPath = $share->getNode()->getPath();
1912+
try {
1913+
$sharedPath = $share->getNode()->getPath();
1914+
} catch (NotFoundException) {
1915+
// node is not found, ignoring
1916+
continue;
1917+
}
19131918
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
19141919
$this->logger->debug(
19151920
'It is not allowed to move one mount point into a shared folder',

0 commit comments

Comments
 (0)