From bd063404481390d2113f85f46b21f56420a2a47b Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:38:07 -0400 Subject: [PATCH] Portal linkage issue --- .../persist/entity/userdefined/SupplyChainValidation.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/userdefined/SupplyChainValidation.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/userdefined/SupplyChainValidation.java index 8c4087fe..ff3b9799 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/userdefined/SupplyChainValidation.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/userdefined/SupplyChainValidation.java @@ -105,8 +105,12 @@ public class SupplyChainValidation extends ArchivableEntity { this.certificatesUsed = new ArrayList<>(); this.rimId = ""; for (ArchivableEntity ae : certificatesUsed) { - if (ae instanceof ReferenceManifest) { - this.rimId = ae.getId().toString(); + if (ae instanceof ReferenceManifest rm) { + if (rm.isBase()) { + this.rimId = rm.getId().toString(); + } else { + this.rimId = rm.getAssociatedRim().toString(); + } break; } else if (ae instanceof Certificate) { this.certificatesUsed.add((Certificate) ae);