Skip to content

fix(SetupManager): Include home and root providers when registering mounts - #52972

Merged
provokateurin merged 1 commit into
masterfrom
fix/setupmanager/home-root-providers-register-mounts
May 20, 2025
Merged

fix(SetupManager): Include home and root providers when registering mounts#52972
provokateurin merged 1 commit into
masterfrom
fix/setupmanager/home-root-providers-register-mounts

Conversation

@provokateurin

Copy link
Copy Markdown
Member

Summary

Fixes#52957.
On each setup of the FS the home mount for the user was added to the oc_mounts table (while already being present), so a lot of unnecessary overhead.

Checklist

@provokateurinprovokateurin added this to the Nextcloud 32 milestone May 20, 2025
@provokateurin
provokateurin requested a review from a team as a code ownerMay 20, 2025 07:01
@provokateurin
provokateurin requested review from nfebe and removed request for a teamMay 20, 2025 07:01

@come-nccome-nc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me.

Any reason IHomeMountProvider and IRootMountProvider are not extending IMountProvider ?
Looks like an oversight to me.

Comment threadlib/private/Files/Config/MountProviderCollection.php Outdated
Comment threadlib/private/Files/Config/MountProviderCollection.php Outdated
@provokateurin

Copy link
Copy Markdown
MemberAuthor

Any reason IHomeMountProvider and IRootMountProvider are not extending IMountProvider ?

No idea TBH

…ounts
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin
provokateurinforce-pushed the fix/setupmanager/home-root-providers-register-mounts branch from 13de209 to ecfa58dCompareMay 20, 2025 07:46
@provokateurin
provokateurin merged commit 08b9eca into masterMay 20, 2025
@provokateurin
provokateurin deleted the fix/setupmanager/home-root-providers-register-mounts branch May 20, 2025 12:17
@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@provokateurin

Copy link
Copy Markdown
MemberAuthor

/backport to stable30

Sign up for freeto 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.

[Bug]: Already cached mounts are added over and over

4 participants

@provokateurin@susnux@come-nc@skjnldsv