diff options
author | Robin Appelman <robin@icewind.nl> | 2023-10-24 16:54:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 16:54:05 +0200 |
commit | efe68d012c354598820121c0ff91dd4db937afdc (patch) | |
tree | ccc3cbb58da6ee156f32368f5a9d6b6902862c3d /apps/files_sharing/lib | |
parent | 970ac3d7ebc512329c86797ec9f31e07a23028e2 (diff) | |
parent | 1eb3293e539f995677c3e3baacff0ccb1ae3da3f (diff) | |
download | nextcloud-server-efe68d012c354598820121c0ff91dd4db937afdc.tar.gz nextcloud-server-efe68d012c354598820121c0ff91dd4db937afdc.zip |
Merge pull request #39044 from nextcloud/more-empty-mount-checking
Fix root mounts not being setup in some cases
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/External/Manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php index 86028602c51..f18d8346dc4 100644 --- a/apps/files_sharing/lib/External/Manager.php +++ b/apps/files_sharing/lib/External/Manager.php @@ -606,6 +606,10 @@ class Manager { $this->logger->error('Mount point to remove share not found', ['mountPoint' => $mountPoint]); return false; } + if (!$mountPointObj instanceof Mount) { + $this->logger->error('Mount point to remove share is not an external share, share probably doesn\'t exist', ['mountPoint' => $mountPoint]); + return false; + } $id = $mountPointObj->getStorage()->getCache()->getId(''); $mountPoint = $this->stripPath($mountPoint); |