Skip to content

fix(activity): throw UnknownActivityException for unknown events#3344

Merged
pringelmann merged 1 commit into
mainfrom
fix/activity-unknown-activity-exception
May 18, 2026
Merged

fix(activity): throw UnknownActivityException for unknown events#3344
pringelmann merged 1 commit into
mainfrom
fix/activity-unknown-activity-exception

Conversation

@pringelmann
Copy link
Copy Markdown
Collaborator

Summary

The Activity manager loops over every registered provider and expects each one to throw if the event isn't theirs. We were doing that with \InvalidArgumentException, which has been deprecated for this purpose since NC 30. Swapped to \OCP\Activity\Exceptions\UnknownActivityException so "not my event" is distinguishable from a real parser bug.

see: nextcloud/server#59609

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann self-assigned this May 18, 2026
@pringelmann pringelmann added 3. to review Waiting for reviews technical debt Technical issue labels May 18, 2026
@pringelmann pringelmann requested a review from Chartman123 May 18, 2026 08:06
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@pringelmann pringelmann merged commit 3689fc8 into main May 18, 2026
53 checks passed
@pringelmann pringelmann deleted the fix/activity-unknown-activity-exception branch May 18, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews technical debt Technical issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants