Skip to content

Fix legacy webhook URI without httpcore5#975

Open
MdTanwer wants to merge 1 commit into
opensearch-project:mainfrom
MdTanwer:fix/ism-custom-webhook-uri-21601
Open

Fix legacy webhook URI without httpcore5#975
MdTanwer wants to merge 1 commit into
opensearch-project:mainfrom
MdTanwer:fix/ism-custom-webhook-uri-21601

Conversation

@MdTanwer

@MdTanwer MdTanwer commented Jun 26, 2026

Copy link
Copy Markdown

Summary

  • Replace org.apache.hc.core5.net.URIBuilder with java.net.URI in LegacyBaseMessage
  • Add unit tests for full-URL and host/query webhook URI construction

This fixes a NoClassDefFoundError when ISM publishes custom_webhook
error notifications. The index-management plugin bundles HttpClient 4, but
LegacyBaseMessage referenced HttpClient 5's URIBuilder, which crashed
the node via uncaught Error handling.

Fixes opensearch-project/OpenSearch#21601

Test plan

  • ./gradlew test --tests "org.opensearch.commons.destination.message.LegacyCustomWebhookMessageTest"

Replace URIBuilder with java.net.URI so ISM custom
webhook error notifications do not require hc.core5 on
the plugin classpath.

Fixes opensearch-project/OpenSearch#21601

Signed-off-by: MdTanwer <tanw9004167@gmail.com>
@MdTanwer MdTanwer force-pushed the fix/ism-custom-webhook-uri-21601 branch from 150e62f to e415e91 Compare June 27, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ISM Policy with custom webhook - fatal error in thread - JVM exit

1 participant