Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-02 14:53:44 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-07-08 22:43:24 +0300
commitadc2ab4bb2b6ab4f860ca1b5030994c6ad55dd59 (patch)
tree157d146c633dae4dbf97d15922e580f04b8817f5 /apps/files_external/lib/Lib
parent3d69f03a6de949553a1fb10b4a54c8ef9689f971 (diff)
Ignore forbidden exception when fetching share mtime on SMB for symlinks
See https://github.com/nextcloud/server/pull/7556#issuecomment-499028026 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 0d8c10b316b..bff23160944 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -302,6 +302,8 @@ class SMB extends Common implements INotifyStorage {
}
} catch (NotFoundException $e) {
// Ignore this, can happen on unavailable DFS shares
+ } catch (ForbiddenException $e) {
+ // Ignore this too - it's a symlink
}
}
return $highestMTime;