Skip to content

Commit d0e7a5a

Browse files
Merge pull request #62452 from nextcloud/backport/62412/stable33
[stable33] fix: Don't add empty and broken ExternalShareScanJob on upgrade
2 parents cc33374 + 8299c23 commit d0e7a5a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/files_sharing/appinfo/info.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Turning the feature off removes shared files and folders on the server for all s
3535
<job>OCA\Files_Sharing\ExpireSharesJob</job>
3636
<job>OCA\Files_Sharing\SharesReminderJob</job>
3737
<job>OCA\Files_Sharing\BackgroundJob\FederatedSharesDiscoverJob</job>
38-
<job>OCA\Files_Sharing\BackgroundJob\ExternalShareScanJob</job>
3938
</background-jobs>
4039

4140
<repair-steps>

apps/files_sharing/lib/BackgroundJob/ExternalShareScanJob.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ protected function run($argument): void {
3535
}
3636

3737
[$userId, $path] = $argument;
38+
if ($userId === null || $userId === '') {
39+
return;
40+
}
41+
3842
try {
3943
$this->rootFolder
4044
->getUserFolder($userId)

0 commit comments

Comments
 (0)