Skip to content

[stable35] fix(session): do not persist the session user in the PHP session - #9743

Merged
mejo- merged 1 commit into
stable35from
backport/9685/stable35
Nov 30, 2026
Merged

mejo- merged 1 commit into
stable35from
backport/9685/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 30, 2026

Copy link
Copy Markdown

Backport of PR #9685

When the editor runs without a logged-in user (direct editing, e.g.
from the Android app), push/sync/save activate the text session's user
for the request. Using setUser() wrote that user into the shared PHP
session. When two requests of the same editor overlapped, the second
one found a user_id without an auth token, the server logged the
session out and cleared it, and all following requests failed the CSRF
check with 412. The client treats a 412 as an outdated document and
shows the "file was overwritten" conflict, even with a single editor.

A request-scoped user is all these endpoints need.

Fixes #9684

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q367ozke3eY15mEffZoDEG
Signed-off-by: kynrek <35751552+kynrek@users.noreply.github.com>
@mejo-
mejo- enabled auto-merge November 30, 2026 09:13
@mejo-
mejo- merged commit 78fb839 into stable35 Nov 30, 2026
69 checks passed
@mejo-
mejo- deleted the backport/9685/stable35 branch November 30, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants