From 67a7f1d57b6b1d7c07dc3da4db51a387f90fef28 Mon Sep 17 00:00:00 2001 From: Pavel Aharoni Date: Mon, 22 May 2017 18:04:03 +0300 Subject: [SDC-23] remove checksum validation DC Change-Id: I8f0fd64bc2edefa38a5a7c2a198f5fabb07db915 Signed-off-by: Pavel Aharoni --- .../src/main/java/org/openecomp/sdc/http/AsdcConnectorClient.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdc-distribution-client/src/main/java/org/openecomp/sdc/http/AsdcConnectorClient.java b/sdc-distribution-client/src/main/java/org/openecomp/sdc/http/AsdcConnectorClient.java index 59a879c..0ef1711 100644 --- a/sdc-distribution-client/src/main/java/org/openecomp/sdc/http/AsdcConnectorClient.java +++ b/sdc-distribution-client/src/main/java/org/openecomp/sdc/http/AsdcConnectorClient.java @@ -381,14 +381,18 @@ public class AsdcConnectorClient { return new DistributionClientDownloadResultImpl(DistributionActionResultEnum.DATA_INTEGRITY_PROBLEM, "failed to get artifact from ASDC. Empty checksum"); } - if (validateChecksum(artifactInfo, payload)) { + DistributionClientDownloadResultImpl resResponse = new DistributionClientDownloadResultImpl(DistributionActionResultEnum.SUCCESS, "success", artifactName, payload); + return resResponse; + + //Validate checksum removed as fix to bug 293657 + /*if (validateChecksum(artifactInfo, payload)) { DistributionClientDownloadResultImpl resResponse = new DistributionClientDownloadResultImpl(DistributionActionResultEnum.SUCCESS, "success", artifactName, payload); return resResponse; } else { return new DistributionClientDownloadResultImpl(DistributionActionResultEnum.GENERAL_ERROR, "Invalid checksum. ArtifactInfo checksum "); - } + }*/ } catch (UnsupportedOperationException | IOException e) { log.error("failed to get artifact from response "); -- cgit 1.2.3-korg