Skip to content

always make user in external share manager explicit - #64623

Open
icewind1991 wants to merge 2 commits into
masterfrom
ext-share-manager-explicit-user
Open

icewind1991 wants to merge 2 commits into
masterfrom
ext-share-manager-explicit-user

Conversation

@icewind1991

@icewind1991 icewind1991 commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

relying on the session user is inconsistent as there might not be a logged in user, or the logged in user might not be the recipient of the share (reshares).

Also removes some dead code.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

the code is only called with non-accepted shares, so the method always returned early

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added this to the Nextcloud 36 milestone Sep 21, 2026
@icewind1991
icewind1991 requested a review from a team as a code owner September 21, 2026 13:58
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Sep 21, 2026
@icewind1991
icewind1991 requested review from CarlSchwan, come-nc, leftybournes and provokateurin and removed request for a team September 21, 2026 13:58
@icewind1991
icewind1991 force-pushed the ext-share-manager-explicit-user branch from 9df63dc to f56da19 Compare September 21, 2026 14:25
relying on the session user is inconsistent as there might not be a logged in user, or the logged in user might not be the recipient of the share (reshares)

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
icewind1991 force-pushed the ext-share-manager-explicit-user branch from f56da19 to 489eb41 Compare September 21, 2026 15:31
@OsipovAlexander11

Copy link
Copy Markdown

Hi @icewind1991, thanks for working on this — we're hitting exactly this issue in production on a ~3000-user Nextcloud deployment (currently on 33.0.4 and 34.0.2). occ files:scan crashes whenever it encounters a stale federated share left behind after remote-side deletion, forcing us to manually query oc_storages/oc_mounts for available != 1 and clean up by hand before every scan.

Given the milestone is set to Nextcloud 36, could this be backported to stable33 and stable34 once merged? It would help us (and likely other admins running federated shares on current stable branches) avoid this workaround until the next major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants