Skip to content

Commit 8d64e07

Browse files
committed
fix: Fix orphan shares blocking moving other shares
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 2080621 commit 8d64e07

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
@@ -1883,7 +1883,12 @@ private function targetIsNotShared(string $user, string $targetPath): bool {
18831883
}, $providers));
18841884

18851885
foreach ($shares as $share) {
1886-
$sharedPath = $share->getNode()->getPath();
1886+
try {
1887+
$sharedPath = $share->getNode()->getPath();
1888+
} catch (NotFoundException) {
1889+
// node is not found, ignoring
1890+
continue;
1891+
}
18871892
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
18881893
$this->logger->debug(
18891894
'It is not allowed to move one mount point into a shared folder',

0 commit comments

Comments
 (0)