mirror of
https://github.com/nextcloud/server.git
synced 2026-03-19 17:13:56 -04:00
Merge pull request #53677 from nextcloud/fix/noid/ignore-missing-owner
This commit is contained in:
commit
faf16fbfb8
1 changed files with 8 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ namespace OCA\DAV\Connector\Sabre;
|
|||
|
||||
use OC\AppFramework\Http\Request;
|
||||
use OC\FilesMetadata\Model\FilesMetadata;
|
||||
use OC\User\NoUserException;
|
||||
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
|
||||
use OCA\Files_Sharing\External\Mount as SharingExternalMount;
|
||||
use OCP\Accounts\IAccountManager;
|
||||
|
|
@ -374,7 +375,13 @@ class FilesPlugin extends ServerPlugin {
|
|||
}
|
||||
|
||||
// Check if the user published their display name
|
||||
$ownerAccount = $this->accountManager->getAccount($owner);
|
||||
try {
|
||||
$ownerAccount = $this->accountManager->getAccount($owner);
|
||||
} catch (NoUserException) {
|
||||
// do not lock process if owner is not local
|
||||
return null;
|
||||
}
|
||||
|
||||
$ownerNameProperty = $ownerAccount->getProperty(IAccountManager::PROPERTY_DISPLAYNAME);
|
||||
|
||||
// Since we are not logged in, we need to have at least the published scope
|
||||
|
|
|
|||
Loading…
Reference in a new issue