You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reject a second not-modified schedule response when its cache window is absent #735
Independent review of the unmerged 5a PR #733 at ff7d65f found that TimetableRepositoryImpl retries once without a tag when NotModified arrives for a missing cache window, but treats a second NotModified as Success anyway.
A persisted ETag can outlive the cached rows after a destructive migration. If the unconditional retry also returns REST304 or RPC not_modified=true, the repository calls onNothingChanged and reports a successful sync while the calendar still has no window.
Required behavior
Make at most one unconditional recovery request. If it still supplies no window and the required cache is absent, return a failed sync without marking freshness, notifying success or recording a new tag. Preserve cancellation and existing no-answer/refusal behavior.
What will hold it
A deterministic repository test with an empty DAO, retained tag and two consecutive NotModified responses must observe exactly two calls (second tag null), Failed, no freshness update, no callbacks and no invented cache rows/tags. Retain the successful NotModified-to-Changed recovery case.
Found by the one independent whole-branch review of #733. No live production incident or native reproduction is claimed. Parent programme #273; fix belongs in the still-open 5a batch.
Activity
Bind schedule results to the membership that sent the request