Skip to content

Commit cc5795b

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

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

18881888
foreach ($shares as $share) {
1889-
$sharedPath = $share->getNode()->getPath();
1889+
try {
1890+
$sharedPath = $share->getNode()->getPath();
1891+
} catch (NotFoundException) {
1892+
// node is not found, ignoring
1893+
continue;
1894+
}
18901895
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
18911896
$this->logger->debug(
18921897
'It is not allowed to move one mount point into a shared folder',

0 commit comments

Comments
 (0)