Skip to content

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

Open
backportbot[bot] wants to merge 1 commit into
stable33from
backport/2908/stable33
Open

backportbot[bot] wants to merge 1 commit into
stable33from
backport/2908/stable33

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>
@backportbot
backportbot Bot requested review from come-nc and solracsf September 15, 2026 12:47
@backportbot backportbot Bot added this to the Nextcloud 33.0.10 milestone Sep 15, 2026
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.

1 participant