From: Andreas Geissler Date: Thu, 1 Jun 2023 13:52:10 +0000 (+0200) Subject: [SO-BPMN-INFRA] Remove trailing slash from SDNC calls X-Git-Tag: 1.13.0~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=so.git;a=commitdiff_plain;h=2d87bee4d6b1ce0407180415e0a883ffde1903e7 [SO-BPMN-INFRA] Remove trailing slash from SDNC calls Correct the rest-call to support new SDNC version for London Issue-ID: SO-4109 Signed-off-by: Andreas Geissler Change-Id: I6a7409ab5ed50396597cc6a179ad491caf1b9910 --- diff --git a/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java b/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java index 7d2fc10d0b..e29d65857c 100644 --- a/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java +++ b/so-sdn-clients/src/main/java/org/onap/so/client/sdnc/SDNCClient.java @@ -51,7 +51,7 @@ public class SDNCClient { */ public String post(Object request, SDNCTopology topology) throws MapperException, BadResponseException { String jsonRequest = sdnCommonTasks.buildJsonRequest(request); - String targetUrl = properties.getHost() + properties.getPath() + ":" + topology.toString() + "/"; + String targetUrl = properties.getHost() + properties.getPath() + ":" + topology.toString(); BaseClient> STOClient = new BaseClient<>(); STOClient.setTargetUrl(targetUrl);