Skip to content

[stable34] fix(NotificationGenerator): catch InvalidArgumentException from notification setters in prepare()#2613

Merged
nickvergessen merged 1 commit into
stable34from
backport/2604/stable34
May 20, 2026
Merged

[stable34] fix(NotificationGenerator): catch InvalidArgumentException from notification setters in prepare()#2613
nickvergessen merged 1 commit into
stable34from
backport/2604/stable34

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 20, 2026

Backport of PR #2604

…ication setters in prepare()

INotification setters like setRichSubject() and setParsedSubject() throw
\InvalidArgumentException for empty/invalid values, which previously escaped
prepare() — triggering the NC39 deprecation. Catch and discard the notification
as already-processed since it cannot be rendered.

AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>
@cypress
Copy link
Copy Markdown

cypress Bot commented May 20, 2026

Activity    Run #3817

Run Properties:  status check failed Failed #3817  •  git commit 3d3d2b6c13: [stable34] fix(NotificationGenerator): catch InvalidArgumentException from notif...
Project Activity
Branch Review backport/2604/stable34
Run status status check failed Failed #3817
Run duration 02m 04s
Commit git commit 3d3d2b6c13: [stable34] fix(NotificationGenerator): catch InvalidArgumentException from notif...
Committer backportbot[bot]
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 8
View all changes introduced in this branch ↗︎

Tests for review

Failed  cypress/e2e/settings.cy.ts • 1 failed test • Run E2E

View Output

Test Artifacts
Check that user's settings survive a reload > Form survive a reload Test Replay Screenshots

@nickvergessen nickvergessen merged commit feb91fd into stable34 May 20, 2026
51 of 54 checks passed
@nickvergessen nickvergessen deleted the backport/2604/stable34 branch May 20, 2026 17:37
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