summaryrefslogtreecommitdiffstats
path: root/catalog-core
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-core')
-rw-r--r--catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java
index f963d7b9..09c3e127 100644
--- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java
+++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java
@@ -55,7 +55,11 @@ public abstract class AbstractModelParser {
}
public String getUrlOnHttpServer(String path) {
- return MsbAddrConfig.getMsbAddress() + "/" + path;
+ if (MsbAddrConfig.getMsbAddress().endsWith("/")) {
+ return MsbAddrConfig.getMsbAddress() + "files/catalog-http" + path;
+ } else {
+ return MsbAddrConfig.getMsbAddress() + "/files/catalog-http" + path;
+ }
}
protected String toTempFilePath(String fileLocation) {