mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-21 09:08:43 +00:00
* fix: filter already-deleted sessions when deleting a group deleteSession uses setSub(..., undefined) to remove session references from group2sessions and author2sessions, but this can leave null entries in the sessionIDs object. When deleteGroup later iterates Object.keys of sessionIDs and calls deleteSession on each, it throws "sessionID does not exist" for the already-deleted sessions. Now deleteGroup filters out null/falsy session entries before attempting to delete them. Fixes: https://github.com/ether/etherpad-lite/issues/5798 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test: add regression test for deleteGroup after deleteSession (#5798) Creates a group, author, and session, then deletes the session first, then deletes the group. Without the fix, deleteGroup would throw "sessionID does not exist" when encountering the null session entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| API.ts | ||
| AuthorManager.ts | ||
| DB.ts | ||
| GroupManager.ts | ||
| Pad.ts | ||
| PadManager.ts | ||
| ReadOnlyManager.ts | ||
| SecurityManager.ts | ||
| SessionManager.ts | ||
| SessionStore.ts | ||