From 98248779d65c7a8f73fa7703d025b0c97dc1eab2 Mon Sep 17 00:00:00 2001 From: "Smokowski, Steven" Date: Thu, 7 May 2020 18:54:21 -0400 Subject: add image detail endpoint to openstack proxy Fix issue where Image had an outer wrapper Issue-ID: SO-2910 Signed-off-by: Benjamin, Max (mb388a) Change-Id: Ia823cf21c6014e513f49bacf84fd2a61a2724bcb --- .../java/org/onap/so/openstack/utils/GlanceClientImpl.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'adapters/mso-adapter-utils/src/main/java/org') diff --git a/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java b/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java index 687afeda40..7a9fdfe70b 100644 --- a/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java +++ b/adapters/mso-adapter-utils/src/main/java/org/onap/so/openstack/utils/GlanceClientImpl.java @@ -20,8 +20,6 @@ package org.onap.so.openstack.utils; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; import org.onap.so.cloud.authentication.KeystoneAuthHolder; import org.onap.so.openstack.exceptions.MsoCloudSiteNotFound; import org.onap.so.openstack.exceptions.MsoException; @@ -73,14 +71,7 @@ public class GlanceClientImpl extends MsoCommonUtils { try { String encodedName = null; if (name != null) { - try { - encodedName = - "in:\"" + URLEncoder.encode(name, "UTF-8").replace("+", "%20").replace("%3A", ":") + "\""; - } catch (UnsupportedEncodingException e) { - logger.error("Error Encoding Image Name", e); - throw new GlanceClientException("Error Endcoding Name", e); - } - + encodedName = "in:\"" + name + "\""; } Glance glanceClient = getGlanceClient(cloudSiteId, tenantId); // list is set to false, otherwise an invalid URL is appended -- cgit 1.2.3-korg