From a41d1484e11f683c8c20f1a2af73f42c97be71ff Mon Sep 17 00:00:00 2001 From: Cyrus <24922493+cyrus-dev@users.noreply.github.com> Date: Fri, 12 Feb 2021 09:01:35 -0500 Subject: [PATCH] Updated the printing of the event number for the failed events. This is to match them with the event number on the support rim page. Support rim page starts at 1 but the method used on the failure page starts at 0. Also while investigating this issue, I noted that the coloring of the failure event disappears after the first viewing of that page. This was fixed. The conditions to check for an error were being ignored after the first load. --- .../ReferenceManifestDetailsPageController.java | 5 +++-- .../src/main/webapp/WEB-INF/jsp/rim-details.jsp | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestDetailsPageController.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestDetailsPageController.java index 41ac09ed..a8671803 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestDetailsPageController.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ReferenceManifestDetailsPageController.java @@ -315,10 +315,11 @@ public class ReferenceManifestDetailsPageController LOGGER.error("Failed to update Support RIM", ex); } } - measurements = EventLogMeasurements.select(referenceManifestManager) - .byManufacturer(support.getPlatformManufacturer()).getRIM(); } + measurements = EventLogMeasurements.select(referenceManifestManager) + .byManufacturer(support.getPlatformManufacturer()).getRIM(); + data.put("baseRim", support.getTagId()); data.put("associatedRim", support.getAssociatedRim()); data.put("rimType", support.getRimType()); diff --git a/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/rim-details.jsp b/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/rim-details.jsp index ecdd813d..05571e35 100644 --- a/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/rim-details.jsp +++ b/HIRS_AttestationCAPortal/src/main/webapp/WEB-INF/jsp/rim-details.jsp @@ -200,11 +200,11 @@ - - + + - - + + ${count} PCR${event.getPcrIndex()} ${event.getEventTypeStr()} @@ -243,7 +243,7 @@
Event#:
-
${sEvent.getEventNumber()}
+
${sEvent.getEventNumber()+1}
PCR Index:
@@ -268,7 +268,7 @@
Event#:
-
${lEvent.getEventNumber()}
+
${lEvent.getEventNumber()+1}
PCR Index: