FELIX-6828 Fix whiteboard startup race that produces permanent 404s#503
FELIX-6828 Fix whiteboard startup race that produces permanent 404s#503royteeuwen wants to merge 1 commit into
Conversation
Reorder WhiteboardManager.stop() so trackers close before webContext is nulled, fold the remaining field clears under the contextMap lock, add a webContext null guard at the top of WhiteboardContextHandler.activate(), make every handler.getRegistry() chain in WhiteboardManager TOCTOU-safe by reading the registry into a local once and null-checking the local, and guard against an uninstalled registering bundle in unregisterWhiteboardService.
Review: FELIX-6828 whiteboard startup race fixSingle commit, 2 files changed: What the patch does (correctly)1.
2.
3. TOCTOU-safe All 7 sites that chain 4. Uninstalled-bundle guard in
Minor observations
VerdictSolid, well-scoped defensive patch. The reordering, lock extension, TOCTOU pattern, and Bundle null guard are all correct and address real failure modes. I'd recommend either deleting the unreachable @royteeuwen can you look at the minor observations? Especially the dead-code part? |
Reorder WhiteboardManager.stop() so trackers close before webContext is nulled, fold the remaining field clears under the contextMap lock, add a webContext null guard at the top of WhiteboardContextHandler.activate(), make every handler.getRegistry() chain in WhiteboardManager TOCTOU-safe by reading the registry into a local once and null-checking the local, and guard against an uninstalled registering bundle in unregisterWhiteboardService.