From be00af7a2e0dc8dc2d5f8fbf03d778a8f632c4fb Mon Sep 17 00:00:00 2001 From: shrikantawachar Date: Wed, 21 Mar 2018 15:58:45 +0530 Subject: Healing issue Attachment screen is opened for certified vsp Change-Id: I4ebd1a4b9f720e92441d887f0fc326a553b9e42e Issue-ID: SDC-1155 Signed-off-by: shrikantawachar --- .../sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openecomp-be/api') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java index 37804ff865..8fdfd2fbd5 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/vendor-software-products-rest/vendor-software-products-rest-services/src/main/java/org/openecomp/sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java @@ -235,7 +235,7 @@ public class VendorSoftwareProductsImpl implements VendorSoftwareProducts { VspDetailsDto vspDetailsDto = new MapVspDetailsToDto().applyMapping(vspDetails, VspDetailsDto.class); - addNetworkPackageInfo(vspId, version, vspDetailsDto); + addNetworkPackageInfo(vspId, vspDetails.getVersion(), vspDetailsDto); return Response.ok(vspDetailsDto).build(); } @@ -596,7 +596,8 @@ public class VendorSoftwareProductsImpl implements VendorSoftwareProducts { } else { OrchestrationTemplateEntity orchestrationTemplateInfo = vendorSoftwareProductManager.getOrchestrationTemplateInfo(vspId, version); - if (Objects.nonNull(orchestrationTemplateInfo)) { + if (Objects.nonNull(orchestrationTemplateInfo) && Objects.nonNull(orchestrationTemplateInfo + .getFileSuffix())) { vspDetailsDto.setValidationData(orchestrationTemplateInfo.getValidationDataStructure()); vspDetailsDto.setNetworkPackageName(orchestrationTemplateInfo.getFileName()); vspDetailsDto.setOnboardingOrigin(orchestrationTemplateInfo.getFileSuffix()); -- cgit 1.2.3-korg