Skip to content

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

@icewind1991 icewind1991 requested review from a team, artonge, come-nc and skjnldsv 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
@come-nc
Copy link
Contributor

come-nc commented Apr 14, 2025

/backport to stable30

@come-nc
Copy link
Contributor

come-nc commented Apr 14, 2025

/backport to stable29

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.

5 participants