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
path: root/apps
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-09-27 09:49:23 +0300
committerGitHub <noreply@github.com>2022-09-27 09:49:23 +0300
commit1ac1aff61375a6a8237304127e4534ac539f8309 (patch)
treec8b39411d31a6c927d328de68e3f38597d9fb56e /apps
parentbd9ab80f87ed639f1eee45a443eec26814c421ee (diff)
parent3ad3bd3039d340a954b014878ef9908dc945edeb (diff)
Merge pull request #34089 from nextcloud/backport/34035/stable24
[stable24] Do not output a warning when a file is not found
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/DAV/ViewOnlyPlugin.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/dav/lib/DAV/ViewOnlyPlugin.php b/apps/dav/lib/DAV/ViewOnlyPlugin.php
index b4652da09e1..e0c4e26f598 100644
--- a/apps/dav/lib/DAV/ViewOnlyPlugin.php
+++ b/apps/dav/lib/DAV/ViewOnlyPlugin.php
@@ -23,8 +23,6 @@ namespace OCA\DAV\DAV;
use OCA\DAV\Connector\Sabre\Exception\Forbidden;
use OCA\DAV\Connector\Sabre\File as DavFile;
-use OCA\DAV\Meta\MetaFile;
-use OCP\Files\FileInfo;
use OCP\Files\NotFoundException;
use Psr\Log\LoggerInterface;
use Sabre\DAV\Server;
@@ -36,7 +34,6 @@ use Sabre\DAV\Exception\NotFound;
* Sabre plugin for restricting file share receiver download:
*/
class ViewOnlyPlugin extends ServerPlugin {
-
private ?Server $server = null;
private LoggerInterface $logger;
@@ -99,9 +96,7 @@ class ViewOnlyPlugin extends ServerPlugin {
throw new Forbidden('Access to this resource has been denied because it is in view-only mode.');
}
} catch (NotFound $e) {
- $this->logger->warning($e->getMessage(), [
- 'exception' => $e,
- ]);
+ // File not found
}
return true;