Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: only do cache copy in updater if the parent folder should be in cache #49695

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

icewind1991
Copy link
Member

#48651 broke moving encrypted files to encrypted groupfolders when not using object store (see the failing cypress run) because the /files_encryption/... folders are intentionally excluded from the cache. So that parent folder of the target of the copy is not in cache, making copyFromCache fail.

This change makes the updater match the old behavior[1] by not updating the cache if the parent folder isn't in the cache (and is excluded from scanning).

[1]: the cache updates for copies where previously handled by Updater::update which just calls scan and thus ignores such excluded paths

…cache

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 requested review from a team, artonge, skjnldsv and come-nc and removed request for a team December 6, 2024 16:52
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Dec 6, 2024
@icewind1991 icewind1991 added this to the Nextcloud 31 milestone Dec 6, 2024
@skjnldsv skjnldsv merged commit ed54713 into master Dec 11, 2024
188 checks passed
@skjnldsv skjnldsv deleted the copy-update-cache-excluded branch December 11, 2024 07:40
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2025
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.

4 participants