Skip to content

Commit 2b80754

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

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

18761876
foreach ($shares as $share) {
1877-
$sharedPath = $share->getNode()->getPath();
1877+
try {
1878+
$sharedPath = $share->getNode()->getPath();
1879+
} catch (NotFoundException) {
1880+
// node is not found, ignoring
1881+
continue;
1882+
}
18781883
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
18791884
$this->logger->debug(
18801885
'It is not allowed to move one mount point into a shared folder',

0 commit comments

Comments
 (0)