Skip to content

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

Merged
susnux merged 1 commit into
stable33from
backport/63495/stable33
Sep 16, 2026
Merged

susnux merged 1 commit into
stable33from
backport/63495/stable33

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 Altahrim, DerDreschner, icewind1991, provokateurin, salmart-dev 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 33.0.10 milestone Sep 15, 2026
@susnux
susnux merged commit baed6b7 into stable33 Sep 16, 2026
175 of 177 checks passed
@susnux
susnux deleted the backport/63495/stable33 branch September 16, 2026 13:45
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