Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
Summary
An object, a blob or a wrap that a store can't hand over now stops only itself, as
spec/store.mdasks under "Contain one bad item", instead of failing the whole sync.read_object's?turned that into a failed sync for every device's changes, every time, on a Flow server and on a WebDAV folder alike.one_iteminserver.rsreads such a failure as absent: over the size limit, or refused with a 4xx other than 401, 407, 408 and 429. The stores'get_objectandkeyboth use it, so log reads, snapshots, blobs, the walk down from acutand LAN answers all see what they see for a gap. Only log reads have a new test; the others are by reading.roster/folder that can't be read is ignored like any other file that isn't an entry. It counts towards the folder's limits as a whole object, and isn't fetched again, so many of them can't cost more than the limits allow.StoreError::TooLarge, so an over-limit answer can't be confused with a malformed sign-in or other response. The interface shows it likeMalformed.Related issue
None.
Change type
Validation
Run on macOS arm64.
pnpm test: not run, no frontend file changedpnpm build: not run, no frontend file changedcargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check: exit 0cargo clippy --all-targets --all-featuresinsrc-tauri: exit 0, no warnings in the files this changescargo test --no-fail-fast --all-targets --all-featuresinsrc-tauri: 1290 passed, 0 failed, 9 ignoredBefore the change, a real WebDAV server holding an object over the limit failed
pullwith "the server sent an invalid response". The new tests failed the same way.Checked by breaking the code on purpose, one change at a time, with
sync2_webdavandsync2_server:Risk and compatibility
No format or database change.
A store that refuses every object with a 403 now shows as a log that stops rather than as a failed sync, because its listing and its roster still answer. Android's reading of the rule treats a 403 the same way.
While a log is held back on the current read, other senders' objects on later pages wait until fix(sync): keep reading other devices past one that stopped #450 lands. A WebDAV folder lists every sender at once, so this only applies to a Flow server's pages.
Not run against a real Flow server or Android.
No new secrets, private data, telemetry, or broad Tauri permissions were introduced.
User-facing documentation was updated where needed. (none needed, the spec already says this)
Dependency and lockfile changes are intentional and limited to this PR. (none)
Breaking changes and upgrade steps are clearly documented. (none)