Skip to content

Commit 117d0ae

Browse files
authored
Merge pull request #56657 from nextcloud/backport/56498/stable32
[stable32] fix(files_sharing): Allow deleting a share of a missing file
2 parents 1eb8d7e + 6cdac07 commit 117d0ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ public function deleteShare(string $id): DataResponse {
543543
$this->lock($share->getNode());
544544
} catch (LockedException $e) {
545545
throw new OCSNotFoundException($this->l->t('Could not delete share'));
546+
} catch (NotFoundException $e) {
547+
$this->logger->debug('File of to be deleted share was not found, skip locking', ['exception' => $e]);
546548
}
547549

548550
if (!$this->canAccessShare($share)) {

0 commit comments

Comments
 (0)