The IP address involved in the downloadfile function needs to be modified to HTTPS 93/105893/1
authorhekeguang <hekeguang@chinamobile.com>
Tue, 14 Apr 2020 08:23:19 +0000 (16:23 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Tue, 14 Apr 2020 08:24:30 +0000 (16:24 +0800)
Issue-ID: USECASEUI-426
Change-Id: Ic34544f0eff7b68632057979c3663431a33062c2
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java

index 908ea82..af60202 100644 (file)
@@ -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));