Change-Id: I1ebc769db84dfe9fe53f4cc60576bb7f855b9d92
Jira:VNFSDK-34
Signed-off-by: Murali <murali.p@huawei.com>
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;