-
Notifications
You must be signed in to change notification settings - Fork 816
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
properly preserve the format of e2ee metadata during DB operations #5577
Conversation
9ecd98f
to
d84d215
Compare
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
src/common/syncjournalfilerecord.h
Outdated
@@ -73,7 +69,7 @@ class OCSYNC_EXPORT SyncJournalFileRecord | |||
[[nodiscard]] bool isVirtualFile() const { return _type == ItemTypeVirtualFile || _type == ItemTypeVirtualFileDownload; } | |||
[[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; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SyncJournalFileRecord::EncryptionStatus::NotEncrypted
-> EncryptionStatus::NotEncrypted
src/libsync/syncfileitem.h
Outdated
@@ -234,7 +229,7 @@ class OWNCLOUDSYNC_EXPORT SyncFileItem | |||
&& !(_instruction == CSYNC_INSTRUCTION_CONFLICT && _status == SyncFileItem::Success); | |||
} | |||
|
|||
[[nodiscard]] bool isEncrypted() const { return _isEncrypted != SyncFileItem::EncryptionStatus::NotEncrypted; } | |||
[[nodiscard]] bool isEncrypted() const { return _e2eEncryptionStatus != SyncFileItem::EncryptionStatus::NotEncrypted; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SyncFileItem::EncryptionStatus::NotEncrypted
-> EncryptionStatus::NotEncrypted
2610944
to
4f00374
Compare
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. |
/backport to stable-3.8 |
before this patch we may put the e2ee version format to v1.2 when it was not the case