Fix download csar path wrong. 91/19491/1
authorLuji7 <lu.ji3@zte.com.cn>
Wed, 18 Oct 2017 08:49:09 +0000 (16:49 +0800)
committerLuji7 <lu.ji3@zte.com.cn>
Wed, 18 Oct 2017 08:49:14 +0000 (16:49 +0800)
Change-Id: Ifb9bbd1b5dbaf84b95b7925d2db2e0fccc72144b
Issue-id: USECASEUI-36
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultServiceTemplateService.java

index b175cce..9569775 100644 (file)
@@ -104,7 +104,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("http://%s%s", msbUrl, toscaModelPath);
             ResponseBody body = sdcCatalog.downloadCsar(templateUrl).execute().body();
             Files.write(body.bytes(),new File(toPath));
         } catch (IOException e) {