Skip to content

Commit 90a3928

Browse files
authored
Merge pull request #52013 from nextcloud/handle-missing-share-providers-when-promoting-reshares
fix: Handle missing share providers when promoting reshares
2 parents 5cc9429 + 1001995 commit 90a3928

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/private/Share20/Manager.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,12 @@ protected function promoteReshares(IShare $share): void {
10651065

10661066
foreach ($userIds as $userId) {
10671067
foreach ($shareTypes as $shareType) {
1068-
$provider = $this->factory->getProviderForType($shareType);
1068+
try {
1069+
$provider = $this->factory->getProviderForType($shareType);
1070+
} catch (ProviderException $e) {
1071+
continue;
1072+
}
1073+
10691074
if ($node instanceof Folder) {
10701075
/* We need to get all shares by this user to get subshares */
10711076
$shares = $provider->getSharesBy($userId, $shareType, null, false, -1, 0);

0 commit comments

Comments
 (0)