Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

@apsantiso
Copy link
Contributor

No description provided.

@apsantiso apsantiso self-assigned this Dec 19, 2024
@apsantiso apsantiso requested a review from sg-gs December 19, 2024 19:46
@apsantiso apsantiso added the bug Something isn't working label Dec 19, 2024
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

: folder.name;

if (shouldUpdateName) {
await folder.update({ name: backupName }, { silent: true });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the frontend uses updated_at to show the last modification on the backups section.

Added silent just to prevent updated_at being updated and mess with user's timestamps (however, updated_at should be updated by the backend in these cases too)

Comment on lines +23 to +33
function decryptNameWithNullFolderId(content) {
try {
const decryptedText = AesUtil.decrypt(content, null);

return decryptedText;
} catch (error) {
log.error(`(decryptNameWithNullFolderId): ${error}`);

return null;
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had problems with decryptName as it uses probabilistic approach if no salt provided, so I had to get directly the Aes implementation.

@apsantiso apsantiso merged commit 57ffe1a into master Dec 19, 2024
10 of 15 checks passed
@apsantiso apsantiso deleted the fix/backups-encrypted-with-bucket branch December 19, 2024 19:52
@apsantiso apsantiso changed the title fix: backups are not being encrypted with bucket if needed [PB-3551] fix: backups are not being encrypted with bucket if needed Dec 19, 2024
@apsantiso apsantiso changed the title [PB-3551] fix: backups are not being encrypted with bucket if needed [PB-3551] fix: backups are now being encrypted with bucket if needed Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working ready-for-preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants