Repository navigation
Catalog: refuse a library with an unknown layout before anything overwrites it #3989
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
Open
chamber074
wants to merge
10
commits into
storytold:main
Choose a base branch
from
chamber074:fix/catalog-unknown-layout
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+855
−33
Open
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e284c5a
Refuse a catalog with an unknown layout before anything is written
chamber074 072ac30
Log the unknown-layout refusal in the roadmap
chamber074 5eac51b
Give the web store a has_folder so segments layouts are refused there…
chamber074 defeb54
Tell a segments folder from a segments file in the web start-up probe
chamber074 a06f512
Cover the segments file-key branch of the web store's has_folder
chamber074 32fafb1
Ask IndexedDB for one key, not all of them, in is_folder
chamber074 53536f8
Bound the IndexedDB folder probe by the prefix successor, not U+FFFF
chamber074 50d245e
Address eliets2's round-6 review: one-pass snapshot read, has_folder …
chamber074 8a6ea19
Merge remote-tracking branch 'upstream/main' into refresh/3989-walk
chamber074 6495dbd
Merge remote-tracking branch 'upstream/main' into refresh/3989-walk
chamber074 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
Script executed:
Repository: storytold/lightcraft
Length of output: 11025
Script executed:
Repository: storytold/lightcraft
Length of output: 42617
Web query:
IndexedDB specification valid string keys comparison lexicographic UTF-16 code units IDBKeyRange bound prefix U+FFFFResult:
Script executed:
Repository: storytold/lightcraft
Length of output: 34096
Script executed:
Repository: storytold/lightcraft
Length of output: 24862
Script executed:
Repository: storytold/lightcraft
Length of output: 8115
Include all descendant keys in the IndexedDB range.
If the only descendant is
segments/\uFFFFpart, this range misses it. The library can then open, and an older snapshot can be overwritten during upgrade. Use an exclusive upper bound that includes every key beginning withprefix.Script executed:
Repository: storytold/lightcraft
Length of output: 15304
Length of output: 4128
Script executed:
Repository: storytold/lightcraft
Length of output: 42440
Script executed:
Repository: storytold/lightcraft
Length of output: 40361
Web query:
MDN IndexedDB same origin multiple browser tabs database transactions readwrite accessResult:
Script executed:
Repository: storytold/lightcraft
Length of output: 10375
Script executed:
Repository: storytold/lightcraft
Length of output: 3689
Coordinate the folder check with catalog writes.
If Web Locks is unavailable and another same-origin tab creates a
segments/key after this check, the mirror remains unchanged. The first tab can then write to the unsupported layout. Coordinate the check with catalog writes.