Repository navigation
fix(store): never save over a document that can't be read - #328
Merged
Merged
Conversation
A settings document that existed but failed to read was renamed aside and replaced by defaults: one bad read dropped every pairing until someone restored the file by hand. A client key or certificate that failed to read was replaced by a new identity, so every host needed pairing again. A document that can't be read now stays where it is, and nothing is saved until a load reads it. An unreadable key or certificate is an error, so the pair every host pinned stays. One that does not parse is still kept as `settings.json.bad`. This follows the shared client store.
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.
Follows the shared client store (core
27437ea9e), as client-ps5 #20 did.settings.jsonthat exists but can't be read stays where it is. The app runs on defaults and saves nothing until a load reads it. Before, it was renamed tosettings.json.badand defaults replaced it, so a passing read error dropped every pairing.settings.json.bad.The core pin stays at
28c312102. The next core draws the Game picture mode row for webOS, and the code behind it is #319, so the bump lands with that PR.Checked on the Mac:
cargo test(45 pass, two new),cargo clippy --all-targets -- -D warnings,cargo fmt --all --check. Not checked: nothing ran on a TV.