diff options
author | Robin Appelman <robin@icewind.nl> | 2024-11-14 16:01:36 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-11-14 16:01:36 +0100 |
commit | cc39714fb59aeaea74fa873820fca5d499d17c06 (patch) | |
tree | 172ef933ada74766abf551de5bb2a202d34c1857 /apps/files_external/lib/Lib | |
parent | 22e2419b2828c5866a32c9da43cbaa8c8a2898ea (diff) | |
download | nextcloud-server-cc39714fb59aeaea74fa873820fca5d499d17c06.tar.gz nextcloud-server-cc39714fb59aeaea74fa873820fca5d499d17c06.zip |
fix: smb: don't fail hard if we can't load acls for a filesmb-acl-fail-soft
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 7 |
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 dd7f1ae8224..4483cfd1bdf 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -193,7 +193,12 @@ class SMB extends Common implements INotifyStorage { * get the acl from fileinfo that is relevant for the configured user */ 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()) { |