Repository navigation
fix(activesync): heal ghost collections instead of FolderSync loops - #106
Merged
TDannhauer merged 1 commit intoSep 28, 2026
Merged
Conversation
🔍 CI ResultsOverall: ❌ 12/12 lanes failed TL;DR: ❌ Quality issues: PHPStan: 245 unique errors in 11 lanes; PHP-CS-Fixer: 35 files. Summary by PHP Version
Quality Metrics
❌ Failed Lanesphp8.0-dev
php8.0-stable
php8.1-dev
php8.1-stable
php8.2-dev
php8.2-stable
php8.3-dev
php8.3-stable
php8.4-dev
php8.4-stable
php8.5-dev
php8.5-stable
CI powered by horde-components • View full results |
Collections with a synckey but no folders cache entry cannot be repaired by incremental FolderSync (Count 0). PING Status 7 then livelocks cooperating clients. Restore the folders row from foldermap, or drop the ghost collection, instead of requesting FolderSync.
TDannhauer
force-pushed
the
fix/activesync-ghost-fsr-and-backlog-health
branch
from
September 18, 2026 21:31
f0c983e to
6bbd08f
Compare
ralflang
added a commit
that referenced
this pull request
Nov 13, 2026
Release version 3.3.0 fix(activesync): log failed state saves through the ActiveSync logger fix(activesync): keep sync state of two devices apart after a device change Merge pull request #114 from horde/docs/todo-spl-exception-classification docs(activesync): note SPL-based exception classification as 6.1 follow-up feat(activesync): let backends set the per-item status of a failed change fix(activesync): read meeting requests with the Horde\Icalendar reader fix(activesync): hold no DB transaction across backend calls in State_Sql Merge pull request #107 from horde/feat/ops-health-evaluator Merge pull request #106 from horde/fix/activesync-ghost-fsr-and-backlog-health docs(activesync): plan the typed collection object chore(activesync): require PHP 8.1 fix(ops): type collection snapshots and match constructor arity Merge pull request #108 from horde/docs/ops-monitor feat(ops): add ActiveSync health evaluation docs(ops): document ActiveSync operations monitor fix(activesync): heal ghost collections instead of FolderSync loops fix(search): finish Gmail Search documents before the client gives up feat(search): stream mailbox Search to survive Gmail's 30s timeout feat(activesync): force Sync TruncationSize override Merge pull request #98 from horde/fix/bogus-binary-size-and-clients feat(sync): recover undrained MOREAVAILABLE backlogs via PING fix(ping): send Status 1 instead of an empty body on stale-cache exit fix(activesync): address review on BINARY.SIZE size handling docs(activesync): record Gmail/Nine/iOS body truncation behaviour fix(activesync): ignore bogus BINARY.SIZE in body part size fix(sync): sweep pre-existing \Deleted messages once per folder fix(sync): ignore read state in draft no-op comparison fix(sync): skip no-op draft rewrites and treat \Deleted as removed fix(sync): apply all InstanceId removes for a recurring series fix(sync): export draft changes under the client's ServerId docs(activesync): document FRAMEWORK_6_1 src-first refactor approach chore(activesync): enable Sync streaming by default and close #83
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
folders[]cache entry, instead of answering PING with Status 7.Motivation
Incremental FolderSync cannot repair that cache skew: a valid hierarchy synckey yields Count 0. Cooperating clients then repeat empty PING → Status 7 → FolderSync indefinitely.
Changes
healCollectionsMissingFolderCache()restores a missing folders row from the persistent foldermap, or drops the collection when it is a true ghost.collectionsNeedFolderResync()now runs that heal and returns false. Missing hierarchy is still handled viahaveHierarchy().Test plan
CollectionsGhostFolderCacheTest,BacklogPingRecoveryTest,PingCollectionLockContentionTest