properly preserve the format of e2ee metadata during DB operations#5577
Merged
Conversation
allexzander
suggested changes
Apr 5, 2023
9ecd98f to
d84d215
Compare
claucambra
approved these changes
Apr 6, 2023
allexzander
reviewed
Apr 6, 2023
8dc9d14 to
fcc9d38
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5577 +/- ##
=======================================
Coverage 59.23% 59.24%
=======================================
Files 143 143
Lines 18437 18445 +8
=======================================
+ Hits 10922 10928 +6
- Misses 7515 7517 +2
|
fcc9d38 to
2610944
Compare
allexzander
reviewed
Apr 12, 2023
| [[nodiscard]] QString path() const { return QString::fromUtf8(_path); } | ||
| [[nodiscard]] QString e2eMangledName() const { return QString::fromUtf8(_e2eMangledName); } | ||
| [[nodiscard]] bool isE2eEncrypted() const { return _isE2eEncrypted != SyncJournalFileRecord::EncryptionStatus::NotEncrypted; } | ||
| [[nodiscard]] bool isE2eEncrypted() const { return _e2eEncryptionStatus != SyncJournalFileRecord::EncryptionStatus::NotEncrypted; } |
Contributor
There was a problem hiding this comment.
SyncJournalFileRecord::EncryptionStatus::NotEncrypted -> EncryptionStatus::NotEncrypted
| } | ||
|
|
||
| [[nodiscard]] bool isEncrypted() const { return _isEncrypted != SyncFileItem::EncryptionStatus::NotEncrypted; } | ||
| [[nodiscard]] bool isEncrypted() const { return _e2eEncryptionStatus != SyncFileItem::EncryptionStatus::NotEncrypted; } |
Contributor
There was a problem hiding this comment.
SyncFileItem::EncryptionStatus::NotEncrypted -> EncryptionStatus::NotEncrypted
2610944 to
4f00374
Compare
allexzander
approved these changes
Apr 12, 2023
before this patch we may put the e2ee version format to v1.2 when it was not the case Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
will consider v1.2 stored encryption status in DB to be equivalent to v1 due to bugs in the v3.8.0 release Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
4f00374 to
9486978
Compare
|
AppImage file: nextcloud-PR-5577-94869783d3443da3f66b9e9431945674090bc330-x86_64.AppImage |
|
SonarCloud Quality Gate failed. |
Collaborator
Author
|
/backport to stable-3.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








before this patch we may put the e2ee version format to v1.2 when it was not the case