Skip to content

Commit b028e83

Browse files
Merge pull request #56656 from nextcloud/backport/56498/stable31
[stable31] fix(files_sharing): Allow deleting a share of a missing file
2 parents 8706dad + cf398cf commit b028e83

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
@@ -539,6 +539,8 @@ public function deleteShare(string $id): DataResponse {
539539
$this->lock($share->getNode());
540540
} catch (LockedException $e) {
541541
throw new OCSNotFoundException($this->l->t('Could not delete share'));
542+
} catch (NotFoundException $e) {
543+
$this->logger->debug('File of to be deleted share was not found, skip locking', ['exception' => $e]);
542544
}
543545

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

0 commit comments

Comments
 (0)