From: Vincent Petry Date: Tue, 28 Feb 2017 09:27:24 +0000 (+0100) Subject: Add comment X-Git-Tag: v12.0.0beta1~35^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=211a76eff3f23c2037b26bc8ea8e4da10f70e823;p=nextcloud-server.git Add comment --- diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php index 579dbbabf44..435f47ee561 100644 --- a/apps/dav/lib/Connector/Sabre/Directory.php +++ b/apps/dav/lib/Connector/Sabre/Directory.php @@ -247,6 +247,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node } try { if (!$this->info->isReadable()) { + // return 403 instead of 404 because a 404 would make + // the caller believe that the collection itself does not exist throw new Forbidden('No read permissions'); } $folderContent = $this->fileView->getDirectoryContent($this->path);