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

[stable29] fix(files_versions): Update unencrypted_size during rollback #50522

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jan 29, 2025

Backport of PR #50299

This prevent restored version of encrypted files from having a wrong reported size. This was blocking download.

Signed-off-by: Louis Chemineau <[email protected]>
@backportbot backportbot bot requested review from Altahrim, come-nc and artonge January 29, 2025 09:39
@backportbot backportbot bot added bug 3. to review Waiting for reviews feature: encryption (server-side) feature: versions php Pull requests that update Php code labels Jan 29, 2025
@backportbot backportbot bot added this to the Nextcloud 29.0.12 milestone Jan 29, 2025
@@ -408,7 +408,8 @@
$fileInfo->getId(), [
'encrypted' => $oldVersion,
'encryptedVersion' => $oldVersion,
'size' => $oldFileInfo->getSize()
'size' => $oldFileInfo->getData()['size'],

Check notice

Code scanning / Psalm

PossiblyFalseReference Note

Cannot call method getData on possibly false value
@artonge artonge merged commit 12d2254 into stable29 Jan 29, 2025
181 checks passed
@artonge artonge deleted the backport/50299/stable29 branch January 29, 2025 10:31
@Altahrim Altahrim mentioned this pull request Feb 5, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants