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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-10-20 10:26:53 +0300
committerGitHub <noreply@github.com>2022-10-20 10:26:53 +0300
commit46a6954a293e9231ed9553f071c104069a76b3e3 (patch)
tree3ca2a022b899c77ffc574d18ba01741a291593e4
parent7711505d3951e0160588da2834233f8b68c84820 (diff)
parent8706dc207f94cd9c963d4b6574970bbd946f4a4d (diff)
Merge pull request #2541 from nextcloud/backport/2537/stable24
-rw-r--r--lib/Controller/WopiController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php
index f21de4c7..c909fe38 100644
--- a/lib/Controller/WopiController.php
+++ b/lib/Controller/WopiController.php
@@ -544,6 +544,9 @@ class WopiController extends Controller {
$this->wopiMapper->update($wopi);
}
return new JSONResponse(['LastModifiedTime' => Helper::toISO8601($file->getMTime())]);
+ } catch (NotFoundException $e) {
+ $this->logger->logException($e, ['level' => ILogger::INFO, 'app' => 'richdocuments', 'message' => 'File not found']);
+ return new JSONResponse([], Http::STATUS_NOT_FOUND);
} catch (\Exception $e) {
$this->logger->logException($e, ['level' => ILogger::ERROR, 'app' => 'richdocuments', 'message' => 'getFile failed']);
return new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);