From c3e5da9cf63a562f2c0bd8def20d0b41afe64739 Mon Sep 17 00:00:00 2001 From: hekeguang Date: Tue, 14 Apr 2020 16:23:19 +0800 Subject: The IP address involved in the downloadfile function needs to be modified to HTTPS Issue-ID: USECASEUI-426 Change-Id: Ic34544f0eff7b68632057979c3663431a33062c2 Signed-off-by: hekeguang --- .../server/service/lcm/impl/DefaultServiceTemplateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java index 908ea820..af602029 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java @@ -109,7 +109,7 @@ public class DefaultServiceTemplateService implements ServiceTemplateService { protected void downloadFile(String toscaModelPath, String toPath) throws IOException { try { String msbUrl = RestfulServices.getMsbAddress(); - String templateUrl = String.format("http://%s%s", msbUrl, toscaModelPath); + String templateUrl = String.format("https://%s%s", msbUrl, toscaModelPath); logger.info("download Csar File Url is:"+templateUrl); ResponseBody body = sdcCatalog.downloadCsar(templateUrl).execute().body(); Files.write(body.bytes(),new File(toPath)); -- cgit 1.2.3-korg