From 41a92b502c1a57c4464c760ea47ec8b4ab4b7aea Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Tue, 6 Apr 2021 08:47:36 +0200 Subject: PNF registration fails when node name has space URL encoded to handle space in node name Issue-ID: CCSDK-3251 Signed-off-by: Ravi Pendurty Change-Id: I743009d9a86f654c8f5f44be99d285a48b2596fb Signed-off-by: Ravi Pendurty --- .../features/sdnr/wt/mountpointregistrar/impl/PNFMountPointClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sdnr') diff --git a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFMountPointClient.java b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFMountPointClient.java index 22b4e5f22..029ae4c55 100644 --- a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFMountPointClient.java +++ b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/impl/PNFMountPointClient.java @@ -22,6 +22,7 @@ import java.io.IOException; import java.util.Base64; import java.util.HashMap; import java.util.Map; +import org.onap.ccsdk.features.sdnr.wt.common.database.requests.BaseRequest; import org.onap.ccsdk.features.sdnr.wt.common.http.BaseHTTPClient; import org.onap.ccsdk.features.sdnr.wt.common.http.BaseHTTPResponse; import org.slf4j.Logger; @@ -128,7 +129,7 @@ public class PNFMountPointClient extends BaseHTTPClient { LOG.info("In pnfRequest - {} : {} : {}", pnfName, method, message); BaseHTTPResponse response; try { - String uri = MOUNTPOINT_URI + pnfName; + String uri = MOUNTPOINT_URI + BaseRequest.urlEncodeValue(pnfName); response = this.sendRequest(uri, method, message, headerMap); LOG.debug("finished with responsecode {}", response.code); return response.code; -- cgit 1.2.3-korg