Add FAILING unit test which shows that the persistence of
WebOfTrust.createOwnIdentity is currently broken:
- If we query the created identity from the database, its
mLatestEditionHint is -1 instead of 0.
- I will work on fixing this in the following commits.
Add FAILING unit test which shows that OwnIdentity.clone() is broken:
- When the original identity had mLatestEditionHint = -1, the clone will
have 0.
- I will work on fixing this in the following commits.
Since OwnIdentity.clone() is broken, add the same test for
Identity.clone()
as
well.
Fix (Own)Identity.clone() not copying the edition hint under
circumstances demonstrated by the unit tests of the previous commits.
Add FAILING unit test which demonstrates a glitch which I discovered
when fixing OwnIdentity.clone():
- Due to the new code which computes the request URI from the insert
URI, the edition hint ends up being -1 instead of 0.
- I will fix this in the following commit.
Fix bug demonstrated by unit test which was introduced in the previous
commit:
- The edition hint would end up as -1 when a SSK URI without
docname/edition is passed to the constructor of OwnIdentity which calls
the Identity constructor with a modified version which contains edition
-1.
Add unit test similar to the one of OwnIdentity in the second to the
last commit
Merge branch 'master' into rewrite-restoreIdentity-deleteIdentity