Skip to content

[stable34] fix(activity): reset the current user and release the teams session - #2925

Merged
come-nc merged 1 commit into
stable34from
backport/2908/stable34
Oct 27, 2026
Merged

come-nc merged 1 commit into
stable34from
backport/2908/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 15, 2026

Copy link
Copy Markdown

Backport of PR #2908

`NotificationGenerator::prepare()` set the activity manager's current user
and reset it only on the happy path, so a provider that threw left another
user's identity installed for the rest of the request. MailQueueHandler and
DigestSender were covered by 216a333; this is the third call site.

`FilesHooks::shareWithTeam()` opened a Circles super session and never
closed it, so every share to a team left the request running elevated. It
is now paired with stopSession() in a finally, matching how groupfolders
handles the same API.

Also adds the regression test that c7516b8 did not ship for skipping
incompletely built events.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@come-nc
come-nc force-pushed the backport/2908/stable34 branch from ee4aae7 to b5b2e4e Compare October 27, 2026 11:47
@come-nc
come-nc enabled auto-merge October 27, 2026 11:51
@come-nc
come-nc merged commit 1f76f9c into stable34 Oct 27, 2026
54 checks passed
@come-nc
come-nc deleted the backport/2908/stable34 branch October 27, 2026 11:52
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.

3 participants