Files
Ferdinand Thiessen cbe36fa8aa fix(encryption): use the closest cached parent for the access list
Copying a folder creates the target directories on the storage before
their cache entries exist, so while the files inside are written the
parent of the target path can not be resolved yet. With per-user keys
the encryption stream needs the access list on every write, so the
unguarded $userFolder->get($parent) made every folder copy fail with a
NotFoundException.

Walk up to the closest ancestor that is known to the cache instead.
Shares only exist on cached nodes, so its access list is the one that
applies and the share keys of the recipients are still created when
copying into a shared folder.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-09-30 23:07:35 +02:00
..