diff options
Diffstat (limited to 'vnfmarket-be')
-rw-r--r-- | vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java index b6fba66e..3bb383fd 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java +++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/wrapper/PackageWrapper.java @@ -201,9 +201,14 @@ public class PackageWrapper { return Response.status(Status.EXPECTATION_FAILED).build(); } - LOG.info("the fileDetail = " + ToolUtil.objectToString(fileDetail)); + String fileName = "temp_"+ packageId + ".csar"; + if (null != fileDetail) + { + LOG.info("the fileDetail = " + ToolUtil.objectToString(fileDetail)); - String fileName = ToolUtil.processFileName(fileDetail.getFileName()); + fileName = ToolUtil.processFileName(fileDetail.getFileName()); + } + String localDirName = ToolUtil.getTempDir(CommonConstant.CATALOG_CSAR_DIR_NAME, fileName); String contentRange = null; |