diff options
Diffstat (limited to 'catalog-core')
-rw-r--r-- | catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/model/parser/AbstractModelParser.java | 6 |
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) { |