From 0ba78a7210536a4c3333e39067de82096bc38a78 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 30 Apr 2024 19:15:50 +0000 Subject: [PATCH] replacing spi.utils isHostInDenyList with core.utils isHostInDenyList (#904) Signed-off-by: Dennis Toepker (cherry picked from commit fa4007c8f3f025927b67b15e45a72e105b63dd07) Signed-off-by: github-actions[bot] --- .../opensearch/notifications/core/utils/ValidationHelpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt b/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt index ba9fc8b0..056b6620 100644 --- a/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt +++ b/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt @@ -20,7 +20,7 @@ fun validateUrl(urlString: String) { } fun validateUrlHost(urlString: String, hostDenyList: List) { - require(!org.opensearch.notifications.spi.utils.isHostInDenylist(urlString, hostDenyList)) { + require(!isHostInDenylist(urlString, hostDenyList)) { "Host of url is denied, based on plugin setting [notification.core.http.host_deny_list]" } }