-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The rollback checks themselves work, but they create a situation where Updater does not realize that it needs to download e.g. a new snapshot because the local snapshot is valid as _intermediate_ snapshot (that can be used for rollback protection but nothing else), but is not valid as final snapshot. Raise in the end of update_snapshot and update_timestamp if the files are not valid final metadata: this way the intermediate metadata does get loaded but Updater also knows it is not the final metadata. This modifies the existing tests but does not yet test the situation described in the first paragraph. Fixes #1563 Signed-off-by: Jussi Kukkonen <[email protected]>
- Loading branch information
Jussi Kukkonen
committed
Sep 10, 2021
1 parent
a102f95
commit d018279
Showing
3 changed files
with
54 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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