You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/10/11 12:08:08 UTC

[camel] branch main updated: 🚑 Fix camel-lra endpoints

This is an automated email from the ASF dual-hosted git repository.

acosentino 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 74a0634f1f8 🚑 Fix camel-lra endpoints
74a0634f1f8 is described below

commit 74a0634f1f8a9b1eda2d37195e8928c36db38461
Author: Croway <fe...@gmail.com>
AuthorDate: Tue Oct 11 12:57:05 2022 +0200

    🚑 Fix camel-lra endpoints
---
 .../src/main/java/org/apache/camel/service/lra/LRAClient.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-lra/src/main/java/org/apache/camel/service/lra/LRAClient.java b/components/camel-lra/src/main/java/org/apache/camel/service/lra/LRAClient.java
index 04873f3998e..0c91d514a3b 100644
--- a/components/camel-lra/src/main/java/org/apache/camel/service/lra/LRAClient.java
+++ b/components/camel-lra/src/main/java/org/apache/camel/service/lra/LRAClient.java
@@ -59,7 +59,7 @@ public class LRAClient implements Closeable {
 
     public CompletableFuture<URL> newLRA() {
         HttpRequest request = HttpRequest.newBuilder()
-                .uri(URI.create(lraUrl + "/" + COORDINATOR_PATH_START))
+                .uri(URI.create(lraUrl + COORDINATOR_PATH_START))
                 .POST(HttpRequest.BodyPublishers.ofString(""))
                 .build();
 
@@ -131,7 +131,7 @@ public class LRAClient implements Closeable {
 
     public CompletableFuture<Void> complete(URL lra) {
         HttpRequest request = HttpRequest.newBuilder()
-                .uri(URI.create(lra.toString() + "/" + COORDINATOR_PATH_CLOSE))
+                .uri(URI.create(lra.toString() + COORDINATOR_PATH_CLOSE))
                 .header("Content-Type", "text/plain")
                 .PUT(HttpRequest.BodyPublishers.ofString(""))
                 .build();
@@ -149,7 +149,7 @@ public class LRAClient implements Closeable {
 
     public CompletableFuture<Void> compensate(URL lra) {
         HttpRequest request = HttpRequest.newBuilder()
-                .uri(URI.create(lra.toString() + "/" + COORDINATOR_PATH_CANCEL))
+                .uri(URI.create(lra.toString() + COORDINATOR_PATH_CANCEL))
                 .header("Content-Type", "text/plain")
                 .PUT(HttpRequest.BodyPublishers.ofString(""))
                 .build();