Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,12 @@ protected function promoteReshares(IShare $share): void {

foreach ($userIds as $userId) {
foreach ($shareTypes as $shareType) {
$provider = $this->factory->getProviderForType($shareType);
try {
$provider = $this->factory->getProviderForType($shareType);
} catch (ProviderException $e) {
continue;
}

if ($node instanceof Folder) {
/* We need to get all shares by this user to get subshares */
$shares = $provider->getSharesBy($userId, $shareType, null, false, -1, 0);
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Share20/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ public function testLinkCreateChecksReadOnly() {

public function testPathCreateChecksContainsSharedMount() {
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('You cannot share a folder that contains other shares');
$this->expectExceptionMessage('Path contains files shared with you');

$path = $this->createMock(Folder::class);
$path->method('getPath')->willReturn('path');
Expand Down
Loading