summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-01-29 15:52:14 +0100
committerGitHub <noreply@github.com>2021-01-29 15:52:14 +0100
commit98c8cd508944c054d08c6acde5e2d64867d84fb9 (patch)
tree525c7e1f959cda74a591113db073dfbf9c31614c /apps/dav/lib
parent8fcc0e8d8c463496009762e7759ac230cbe62cfa (diff)
parente9ae943bbaeda07724dd52cb238caad015504a6f (diff)
downloadnextcloud-server-98c8cd508944c054d08c6acde5e2d64867d84fb9.tar.gz
nextcloud-server-98c8cd508944c054d08c6acde5e2d64867d84fb9.zip
Merge pull request #25383 from nextcloud/bugfix/24893
Properly handle SMB ACL blocking scanning a directory
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index 990e57eea58..98705c57792 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -41,6 +41,7 @@ use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
use OCP\Files\FileInfo;
use OCP\Files\ForbiddenException;
use OCP\Files\InvalidPathException;
+use OCP\Files\NotPermittedException;
use OCP\Files\StorageNotAvailableException;
use OCP\Lock\ILockingProvider;
use OCP\Lock\LockedException;
@@ -343,6 +344,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
return [0, 0];
} catch (\OCP\Files\StorageNotAvailableException $e) {
return [0, 0];
+ } catch (NotPermittedException $e) {
+ return [0, 0];
}
}