Skip to content

Commit

Permalink
fix(files_versions): Update unencrypted_size during rollback
Browse files Browse the repository at this point in the history
This prevent restored version of encrypted files from having a wrong reported size. This was blocking download.

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jan 21, 2025
1 parent f413623 commit 9a88f24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_versions/lib/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ public static function rollback(string $file, int $revision, IUser $user) {
$fileInfo->getId(), [
'encrypted' => $oldVersion,
'encryptedVersion' => $oldVersion,
'size' => $oldFileInfo->getSize()
'size' => $oldFileInfo->getSize(),
'unencrypted_size' => $oldFileInfo->getSize(),
]
);

Expand Down

0 comments on commit 9a88f24

Please sign in to comment.