Skip to content

Commit f724102

Browse files
authored
Merge pull request #52042 from nextcloud/backport/52013/stable30
[stable30] fix: Handle missing share providers when promoting reshares
2 parents c02cdcc + c002b78 commit f724102

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
@@ -1083,7 +1083,12 @@ protected function promoteReshares(IShare $share): void {
10831083

10841084
foreach ($userIds as $userId) {
10851085
foreach ($shareTypes as $shareType) {
1086-
$provider = $this->factory->getProviderForType($shareType);
1086+
try {
1087+
$provider = $this->factory->getProviderForType($shareType);
1088+
} catch (ProviderException $e) {
1089+
continue;
1090+
}
1091+
10871092
if ($node instanceof Folder) {
10881093
/* We need to get all shares by this user to get subshares */
10891094
$shares = $provider->getSharesBy($userId, $shareType, null, false, -1, 0);

0 commit comments

Comments
 (0)