From 867833dc9d46ab1e2e5fdc1651399f811b8febdf Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Wed, 27 Oct 2021 14:14:09 -0400 Subject: [PATCH] [#411] Changed assumption regarding Delta cert components with ADDED status. --- .../hirs/validation/SupplyChainCredentialValidator.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/HIRS_Utils/src/main/java/hirs/validation/SupplyChainCredentialValidator.java b/HIRS_Utils/src/main/java/hirs/validation/SupplyChainCredentialValidator.java index ecdf3cdf..752cca41 100644 --- a/HIRS_Utils/src/main/java/hirs/validation/SupplyChainCredentialValidator.java +++ b/HIRS_Utils/src/main/java/hirs/validation/SupplyChainCredentialValidator.java @@ -655,13 +655,7 @@ public final class SupplyChainCredentialValidator implements CredentialValidator .getValue()); if (classFound) { if (isMatch(ciV2, baseCiV2)) { - if (ciV2.isAdded()) { - // error - resultMessage.append("ADDED attempted with prior instance\n"); - deltaSb.append(String.format("%s;", ci.hashCode())); - break; - } - if (ciV2.isModified()) { + if (ciV2.isAdded() || ciV2.isModified()) { // since the base list doesn't have this ci // just add the delta baseCompList.add(deltaCi);