fix: Fix orphan shares blocking moving other shares

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-12-01 09:43:39 +01:00 committed by Côme Chilliet
parent b4a18b07bf
commit cc5795ba45

View file

@ -1886,7 +1886,12 @@ class View {
}, $providers));
foreach ($shares as $share) {
$sharedPath = $share->getNode()->getPath();
try {
$sharedPath = $share->getNode()->getPath();
} catch (NotFoundException) {
// node is not found, ignoring
continue;
}
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
$this->logger->debug(
'It is not allowed to move one mount point into a shared folder',