Skip to content

fix updating cached mounts that didn't have their mount provider set previously - #33540

Merged
PVince81 merged 2 commits into
masterfrom
mount-provider-migration
Aug 17, 2022
Merged

fix updating cached mounts that didn't have their mount provider set previously#33540
PVince81 merged 2 commits into
masterfrom
mount-provider-migration

Conversation

@icewind1991

Copy link
Copy Markdown
Member

When a cached mount info has no mount provider set, but it's rootId matches one of the newly registered providers, we might be hitting in a migration case with existing pre-24 mountpoints. So it should be taken in consideration even if it doesn't match the registered mount provider types.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Aug 15, 2022
@icewind1991 icewind1991 added this to the Nextcloud 25 milestone Aug 15, 2022
@icewind1991
icewind1991 requested review from a team, CarlSchwan, PVince81 and blizzz and removed request for a team August 15, 2022 09:59

@PVince81 PVince81 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@PVince81

Copy link
Copy Markdown
Member

add unit test if possible ?

@icewind1991

Copy link
Copy Markdown
Member Author

add unit test if possible ?

done

…previously

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
icewind1991 force-pushed the mount-provider-migration branch from dd07abc to 887952b Compare August 16, 2022 11:47
@PVince81
PVince81 merged commit 2360d88 into master Aug 17, 2022
@PVince81
PVince81 deleted the mount-provider-migration branch August 17, 2022 08:41
@skjnldsv skjnldsv mentioned this pull request Aug 18, 2022
@PVince81

Copy link
Copy Markdown
Member

/backport to stable24

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

3 participants