Skip to content

[stable34] fix(sessions): only use share node matching the session document - #9521

Open
mejo- wants to merge 1 commit into
stable34from
backport/stable34/sessions_match_document
Open

mejo- wants to merge 1 commit into
stable34from
backport/stable34/sessions_match_document

Conversation

@mejo-

@mejo- mejo- commented Nov 3, 2026

Copy link
Copy Markdown
Member

getFileForSession() returned the node of a single-file share without checking it against the session's document, so the share token passed with push, sync and save could belong to a different file. Require the resolved file id to match the session document id.

Alaready fixed in stable35 and above, where getFileByIdFromShare() does the same check, as part of #9062.

Assisted-by: ClaudeCode:claude-opus-5-5

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

getFileForSession() returned the node of a single-file share without
checking it against the session's document, so the share token passed
with push, sync and save could belong to a different file. Require the
resolved file id to match the session document id.

Alaready fixed in stable35 and above, where getFileByIdFromShare() does
the same check, as part of #9062.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
@mejo- mejo- self-assigned this Nov 3, 2026
@mejo- mejo- added bug Something isn't working 3. to review feature: sharing labels Nov 3, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Nov 3, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Nov 3, 2026
@mejo-

mejo- commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

/backport! to stable33

@mejo-

mejo- commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

/backport! to stable32

@mejo-

mejo- commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

/backport! to stable31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

3 participants