diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ComponentComparisonPageController.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ComponentComparisonPageController.java index a4c222e0..919e43a2 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ComponentComparisonPageController.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/controllers/ComponentComparisonPageController.java @@ -65,7 +65,6 @@ public class ComponentComparisonPageController extends PageController data = new HashMap<>(); mav.addObject(MESSAGES_ATTRIBUTE, messages); - mav.addObject(INITIAL_DATA, data); // Check if parameters were set if (params.getSessionId() == null) { String typeError = "ID was not provided"; @@ -123,6 +122,8 @@ public class ComponentComparisonPageController extends PageController attributeResults = componentAttributeRepository .findByProvisionSessionId(sessionId); + + data.put("deviceName", deviceName); if (!attributeResults.isEmpty()) { ComponentResult componentResult = componentResultRepository.findById(attributeResults.get(0).getComponentId()).get(); platformCredential = platformCertificateRepository @@ -132,6 +133,7 @@ public class ComponentComparisonPageController extends PageController
Support Component Objects
- -
Device: ${initialData.hostName} + +
Device: ${initialData.deviceName}
-
Platform Certificate: ${initialData.certificateFileName} +
Platform Certificate: ${initialData.boardNumber}
@@ -38,7 +38,7 @@
-
Client Log
+
Certificate Component
@@ -49,12 +49,8 @@
Manufacturer: ${componentResult.getManufacturer()}
Model: ${componentResult.getModel()}
- - Serial Number: ${component.getSerialNumber()}
-
- - Revision: ${component.getRevisionNumber()}
-
+ Serial Number: ${componentResult.getSerialNumber()}
+ Revision: ${componentResult.getRevisionNumber()}
@@ -64,17 +60,11 @@ ${lEvent.getEventTypeString()}
- - - - -
-
PCR Index: ${event.getPcrIndex()}
-
Digest: ${event.getEventDigestStr()}
-
Event Content: ${event.getEventContentStr()}
-
-
-
+ + Manufacturer: ${componentInfos.getComponentManufacturer()}
+ Model: ${componentInfos.getComponentModel()}
+ Serial Number: ${componentInfos.getComponentSerial()}
+ Revision: ${componentInfos.getComponentRevision()}