Skip to content

Commit 238aa35

Browse files
authored
Clarify handling of E2E encryption metadata in Updater
Added comments to clarify handling of E2E encryption metadata files.
1 parent f37ddad commit 238aa35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Files/Cache/Updater.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public function update($path, $time = null, ?int $sizeDifference = null) {
119119
if (isset($data['encrypted']) && (bool)$data['encrypted']) {
120120
$sizeDifference = null;
121121
}
122-
122+
123+
// skip E2E encryption metadata files to avoid interfering with internal encryption handling
123124
$appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data';
124125
if (str_starts_with($path, $appDataPath)) {
125126
return;
@@ -152,6 +153,7 @@ public function remove($path) {
152153

153154
$this->cache->remove($path);
154155

156+
// skip E2E encryption metadata files to avoid interfering with internal encryption handling
155157
$appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data';
156158
if (str_starts_with($path, $appDataPath)) {
157159
return;

0 commit comments

Comments
 (0)