From 55a58e51dcae5a23c1679b5620237f13bcee8216 Mon Sep 17 00:00:00 2001 From: ayalaben Date: Thu, 18 Oct 2018 17:51:46 +0300 Subject: VSP submit doesn't validate vlm version Change-Id: I8105cc83c0ba6ec3b45a04672399ca6ac9986146 Issue-ID: SDC-1843 Signed-off-by: ayalaben --- .../sdcrests/vsp/rest/services/VendorSoftwareProductsImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 f0fcd15939..36e076083f 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 @@ -496,7 +496,9 @@ public class VendorSoftwareProductsImpl implements VendorSoftwareProducts { private Optional submit(String vspId, Version version, String message, String user) throws IOException { - ValidationResponse validationResponse = vendorSoftwareProductManager.validate(vspId, version); + VspDetails vspDetails = vendorSoftwareProductManager.getVsp(vspId, version); + vspDetails.setVlmVersion(versioningManager.get(vspDetails.getVendorId(),vspDetails.getVlmVersion())); + ValidationResponse validationResponse = vendorSoftwareProductManager.validate(vspDetails); Map> compilationErrors = vendorSoftwareProductManager.compile(vspId, version); if (!validationResponse.isValid() || MapUtils.isNotEmpty(compilationErrors)) { -- cgit 1.2.3-korg