always make user in external share manager explicit - #64623
Open
icewind1991 wants to merge 2 commits into
Open
icewind1991 wants to merge 2 commits into
icewind1991 wants to merge 2 commits into
Conversation
the code is only called with non-accepted shares, so the method always returned early Signed-off-by: Robin Appelman <robin@icewind.nl>
icewind1991
requested review from
CarlSchwan,
come-nc,
leftybournes and
provokateurin
and removed request for
a team
September 21, 2026 13:58
9 tasks
icewind1991
force-pushed
the
ext-share-manager-explicit-user
branch
from
September 21, 2026 14:25
9df63dc to
f56da19
Compare
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
force-pushed
the
ext-share-manager-explicit-user
branch
from
September 21, 2026 15:31
f56da19 to
489eb41
Compare
|
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. |
provokateurin
approved these changes
Sep 22, 2026
provokateurin
enabled auto-merge
September 22, 2026 07:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
3. to review, feature component)stable32)AI (if applicable)