Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2018-03-01 01:02:45 +0300
committerJanek Bevendorff <janek@jbev.net>2018-03-01 19:59:01 +0300
commit0d4aff55bc3f778e673e3f8185a69366ee11d407 (patch)
tree576068696dfa31b8485b811fed6a09a04b08c0c5 /tests/TestKdbx4.cpp
parent2e8846ef8d8d845b071a9d4accc45e3142c725d6 (diff)
Don't upgrade to KDBX 4 when CustomData are present only in meta data section, resolves #1565
Diffstat (limited to 'tests/TestKdbx4.cpp')
-rw-r--r--tests/TestKdbx4.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/TestKdbx4.cpp b/tests/TestKdbx4.cpp
index 24a07aa63..08b24c47f 100644
--- a/tests/TestKdbx4.cpp
+++ b/tests/TestKdbx4.cpp
@@ -149,8 +149,10 @@ void TestKdbx4::testFormat400Upgrade()
sourceDb->changeKdf(KeePass2::uuidToKdf(kdfUuid));
sourceDb->setCipher(cipherUuid);
+ // CustomData in meta should not cause any version change
+ sourceDb->metadata()->customData()->set("CustomPublicData", "Hey look, I turned myself into a pickle!");
if (addCustomData) {
- sourceDb->metadata()->customData()->set("CustomPublicData", "Hey look, I turned myself into a pickle!");
+ // this, however, should
sourceDb->rootGroup()->customData()->set("CustomGroupData", "I just killed my family! I don't care who they were!");
}