From 31eea400287d15d0a4bf1b64fc5233e2ac9b34ae Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Wed, 9 Mar 2022 09:38:01 -0500 Subject: [PATCH] The link for the event measurement log file was broken --- .../page/controllers/ReferenceManifestPageController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java index 59165131..78afbeaf 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestPageController.java @@ -10,6 +10,7 @@ import hirs.attestationca.portal.page.PageController; import hirs.attestationca.portal.page.PageMessages; import hirs.attestationca.portal.page.params.NoPageParams; import hirs.data.persist.BaseReferenceManifest; +import hirs.data.persist.EventLogMeasurements; import hirs.data.persist.ReferenceDigestValue; import hirs.data.persist.ReferenceManifest; import hirs.data.persist.SupportReferenceManifest; @@ -471,6 +472,11 @@ public class ReferenceManifestPageController .byEntityId(uuid).getRIM(); } + if (rim == null) { + rim = EventLogMeasurements.select(referenceManifestManager) + .byEntityId(uuid).getRIM(); + } + return rim; }