aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-11-14 16:01:36 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-12-04 17:23:34 +0000
commitf92de57ba0c2369ffe247da4ff7a029fa947da79 (patch)
tree47ffca8b0d66715edcfca34122bca542db9331a5 /apps
parent5b8c2d62f1017021c8ef23ba06a0bf15724fb247 (diff)
downloadnextcloud-server-f92de57ba0c2369ffe247da4ff7a029fa947da79.tar.gz
nextcloud-server-f92de57ba0c2369ffe247da4ff7a029fa947da79.zip
fix: smb: don't fail hard if we can't load acls for a filebackport/49288/stable30
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 8b367ca4511..a646345cc69 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -205,7 +205,12 @@ class SMB extends Common implements INotifyStorage {
* @return ACL|null
*/
private function getACL(IFileInfo $file): ?ACL {
- $acls = $file->getAcls();
+ try {
+ $acls = $file->getAcls();
+ } catch (Exception $e) {
+ $this->logger->error('Error while getting file acls', ['exception' => $e]);
+ return null;
+ }
foreach ($acls as $user => $acl) {
[, $user] = $this->splitUser($user); // strip domain
if ($user === $this->server->getAuth()->getUsername()) {