You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/03/14 08:37:40 UTC
(camel) branch main updated: Upgrade to jolokia 2.0.2
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 640f4130aa6 Upgrade to jolokia 2.0.2
640f4130aa6 is described below
commit 640f4130aa6ac22b6f7bfb21670bd2f711553c6a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Mar 14 09:37:30 2024 +0100
Upgrade to jolokia 2.0.2
---
.../platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java | 3 ++-
.../platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java b/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java
index 6cc3a4ae9c4..5275ad7f8c4 100644
--- a/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java
+++ b/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java
@@ -166,7 +166,8 @@ public class DefaultJolokiaPlatformHttpPlugin extends ServiceSupport implements
JSONAware json = null;
try {
- requestHandler.checkAccess(req.remoteAddress().host(), req.remoteAddress().host(), getOriginOrReferer(req));
+ requestHandler.checkAccess(req.scheme(), req.remoteAddress().host(), req.remoteAddress().host(),
+ getOriginOrReferer(req));
if (req.method() == HttpMethod.GET) {
json = requestHandler.handleGetRequest(req.uri(), remainingPath, getParams(req.params()));
} else {
diff --git a/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java b/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
index 730c1504e10..4d7c73e8c32 100644
--- a/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
+++ b/components/camel-platform-http-jolokia/src/test/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPluginTest.java
@@ -54,7 +54,7 @@ public class DefaultJolokiaPlatformHttpPluginTest extends ContextTestSupport {
String type = (String) request.get("type");
assertEquals("version", type);
- assertEquals("2.0.1", agentVersion);
+ assertEquals("2.0.2", agentVersion);
}
private PlatformHttpPluginRegistry resolvePlatformHttpPluginRegistry() {