mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #56969 from nextcloud/backport/56758/stable32
[stable32] fix: Fix orphan shares blocking moving other shares
This commit is contained in:
commit
e0e80c852d
1 changed files with 9 additions and 1 deletions
|
|
@ -1886,7 +1886,15 @@ class View {
|
|||
}, $providers));
|
||||
|
||||
foreach ($shares as $share) {
|
||||
$sharedPath = $share->getNode()->getPath();
|
||||
try {
|
||||
$sharedPath = $share->getNode()->getPath();
|
||||
} catch (NotFoundException $e) {
|
||||
// node is not found, ignoring
|
||||
$this->logger->debug(
|
||||
'Could not find the node linked to a share',
|
||||
['app' => 'files', 'exception' => $e]);
|
||||
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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue