summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhekeguang <hekeguang@chinamobile.com>2020-04-14 16:23:19 +0800
committerhekeguang <hekeguang@chinamobile.com>2020-04-14 16:24:30 +0800
commitc3e5da9cf63a562f2c0bd8def20d0b41afe64739 (patch)
tree6d4e128a89c72b0bfd8f5155b6a9dec2511b8651
parente65c5a124de83043fb2085a5b415793d50d400ab (diff)
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 <hekeguang@chinamobile.com>
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java2
1 files changed, 1 insertions, 1 deletions
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));