Merge pull request #56498 from nextcloud/fix/fix-deleting-broken-shares

fix(files_sharing): Allow deleting a share of a missing file
This commit is contained in:
Stephan Orbaugh 2025-11-25 11:46:29 +01:00 committed by GitHub
commit a7dd4e8c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -545,6 +545,8 @@ class ShareAPIController extends OCSController {
$this->lock($share->getNode());
} catch (LockedException $e) {
throw new OCSNotFoundException($this->l->t('Could not delete share'));
} catch (NotFoundException $e) {
$this->logger->debug('File of to be deleted share was not found, skip locking', ['exception' => $e]);
}
if (!$this->canAccessShare($share)) {