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 ebd3e015..1637a3e4 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 @@ -18,6 +18,7 @@ import java.security.cert.CertificateException; import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.ArrayList; import java.util.UUID; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -157,7 +158,7 @@ public class ReferenceManifestDetailsPageController data.put("rimType", rim.getRimType()); List resources = rim.parseResource(); String resourceFilename = null; - TCGEventLog logProcessor = new TCGEventLog(); + TCGEventLog logProcessor; try { for (SwidResource swidRes : resources) { @@ -171,8 +172,7 @@ public class ReferenceManifestDetailsPageController swidRes.setPcrValues(Arrays.asList( logProcessor.getExpectedPCRValues())); } else { - swidRes.setPcrValues(Arrays.asList( - logProcessor.getExpectedPCRValues())); + swidRes.setPcrValues(new ArrayList<>()); } } } catch (NoSuchFileException nsfEx) { 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 642fbf60..367d357a 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 @@ -127,46 +127,53 @@ ${resource.getName()} -
- File Size: - ${resource.getSize()}
- Hash: - ${resource.getHashValue()}
- - RIM Format: - ${resource.getRimFormat()}
-
- - RIM Type: - ${resource.getRimType()}
-
- - URI Global: - ${resource.getRimUriGlobal()}
-
- -
- -
-
- -
-
- ${pcrValue.key} - ${pcrValue.value} -
+ + +
+ File Size: + ${resource.getSize()}
+ Hash: + ${resource.getHashValue()}
+ + RIM Format: + ${resource.getRimFormat()}
+
+ + RIM Type: + ${resource.getRimType()}
+
+ + URI Global: + ${resource.getRimUriGlobal()}
+
+ +
+ +
+
+ +
+
+ ${pcrValue.key} + ${pcrValue.value} +
+
+
- +
-
+
- -
+ + +
File Not Found.
+
+
diff --git a/HIRS_Utils/src/main/java/hirs/data/persist/SwidResource.java b/HIRS_Utils/src/main/java/hirs/data/persist/SwidResource.java index b851c3ae..0db88fe5 100644 --- a/HIRS_Utils/src/main/java/hirs/data/persist/SwidResource.java +++ b/HIRS_Utils/src/main/java/hirs/data/persist/SwidResource.java @@ -213,9 +213,6 @@ public class SwidResource { return innerMap; } - /** - * - */ private void parsePcrValues() { TCGEventLog logProcessor = new TCGEventLog();