Skip to content

[stable35] fix(files_sharing): don't crash CleanupShareTarget when mount info is missing - #64367

Merged
susnux merged 1 commit into
stable35from
backport/63495/stable35
Sep 16, 2026
Merged

susnux merged 1 commit into
stable35from
backport/63495/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 15, 2026

Copy link
Copy Markdown

Backport of PR #63495

… missing

The repair step "Cleanup share names with false conflicts" fatals with
"Call to a member function getRootId() on null" when a problem share's
old target has no entry in the recipient's cached mounts (e.g. the
recipient has not logged in since the share was created).

Guard the lookup the same way the generateUniqueTarget callback already
does and skip the mount cache refresh in that case - the share row is
already updated by moveShare() and the cache is rebuilt on the user's
next login.

Fixes #63494

Signed-off-by: Baki Burak Öğün <63836730+bakiburakogun@users.noreply.github.com>
@backportbot
backportbot Bot requested a review from a team as a code owner September 15, 2026 16:25
@backportbot
backportbot Bot requested review from CarlSchwan, DerDreschner, icewind1991, leftybournes, provokateurin and susnux and removed request for a team September 15, 2026 16:25
@backportbot backportbot Bot added bug 3. to review Waiting for reviews feature: sharing feedback-requested community pull requests from community labels Sep 15, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.1 milestone Sep 15, 2026
@susnux
susnux merged commit 375839d into stable35 Sep 16, 2026
229 of 233 checks passed
@susnux
susnux deleted the backport/63495/stable35 branch September 16, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants