Skip to content

[alerter]bugfix: fix Gotify default webhook URL - #4350

Open
paultanay wants to merge 4 commits into
apache:masterfrom
paultanay:fix-gotify-default-url
Open

[alerter]bugfix: fix Gotify default webhook URL#4350
paultanay wants to merge 4 commits into
apache:masterfrom
paultanay:fix-gotify-default-url

Conversation

@paultanay

Copy link
Copy Markdown
Contributor

What's changed

Fixes #4349

This PR fixes the fallback default Gotify webhook URL in AlerterProperties.

GotifyAlertNotifyHandlerImpl builds the webhook URL with String.format(...), but the Java fallback default was missing the %s placeholder. When that fallback value is used, the receiver Gotify token is ignored and the generated request URL does not include the token.

This change makes the Java fallback default consistent with the configured value in application.yml.

Changes

  • Added the missing %s token placeholder to the default Gotify webhook URL.
  • Added/updated unit test coverage for Gotify URL formatting.

Test

mvn -pl hertzbeat-alerter -Dtest=GotifyAlertNotifyHandlerImplTest test

@paultanay
paultanay marked this pull request as ready for review August 24, 2026 18:18
@paultanay

paultanay commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

ready for review @Aias00 could you please run the ci once, thanks...

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Gotify fallback webhook URL is missing token placeholder

1 participant