Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adapt token exception to 24
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed May 17, 2022
commit f67b5f711f4eb7e30a27aeee431f16935fcf74c3
5 changes: 1 addition & 4 deletions lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,9 @@ public function postFile(string $fileId, string $access_token): JSONResponse {
$wopiLock = $this->request->getHeader('X-WOPI-Lock');
list($fileId, ,) = Helper::parseFileId($fileId);
$wopi = $this->wopiMapper->getWopiForToken($access_token);
} catch (UnknownTokenException $e) {
} catch (DoesNotExistException $e) {
$this->logger->debug($e->getMessage(), ['app' => 'richdocuments']);
return new JSONResponse([], Http::STATUS_FORBIDDEN);
} catch (ExpiredTokenException $e) {
$this->logger->debug($e->getMessage(), ['app' => 'richdocuments']);
return new JSONResponse([], Http::STATUS_UNAUTHORIZED);
} catch (\Exception $e) {
$this->logger->logException($e, ['app' => 'richdocuments']);
return new JSONResponse([], Http::STATUS_FORBIDDEN);
Expand Down