Merge branch 'issue-395' of github.com:nsacyber/HIRS into issue-395

This commit is contained in:
chubtub 2022-02-17 16:55:59 -05:00
commit bf989bbee7
5 changed files with 11 additions and 14 deletions

View File

@ -1056,6 +1056,12 @@ public abstract class AbstractAttestationCertificateAuthority
false, false, tpe.getEventContent());
this.referenceEventManager.saveValue(rdv);
}
} catch (CertificateException e) {
e.printStackTrace();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}

View File

@ -57,8 +57,8 @@ public enum Page {
/**
* Page to display RIM event digest table.
*/
TPM_EVENTS("RIM Database", "ic_important_devices", "first"),
/**
RIM_DATABASE("RIM Database", "ic_important_devices", "first"),
\ /**
* Page that manages Attestation CA Policy.
*/
RIM_DATABASE("RIM Database", null, "first"),

View File

@ -286,15 +286,6 @@ public class ReferenceManifestPageController
}
}
}
for (EventLogMeasurements liveLog : EventLogMeasurements
.select(referenceManifestManager).getRIMs()) {
if (liveLog.getPlatformManufacturer().equals(base.getPlatformManufacturer())
&& liveLog.getPlatformModel().equals(base.getPlatformModel())) {
rim.setEventLogHash(liveLog.getEventLogHash());
break;
}
}
}
}
}

View File

@ -104,9 +104,11 @@ public class RimDatabasePageController
*/
@Autowired
public RimDatabasePageController(
final DBReferenceManifestManager referenceManifestManager,
final DBReferenceDigestManager referenceDigestManager,
final DBReferenceEventManager referenceEventManager) {
super(Page.RIM_DATABASE);
this.referenceManifestManager = referenceManifestManager;
this.referenceDigestManager = referenceDigestManager;
this.referenceEventManager = referenceEventManager;
this.biosValidator = new BiosDateValidator(BIOS_RELEASE_DATE_FORMAT);

View File

@ -818,9 +818,7 @@ public abstract class AbstractDbManager<T> implements CrudManager<T> {
LOGGER.info("Get unique result from criteria object");
recordsFiltered = (Long) criteria.uniqueResult();
} catch (HibernateException e) {
LOGGER.info(e.getMessage());
} catch (Exception e) {
LOGGER.info("Error while getting unique result: " + e.getMessage());
LOGGER.error(e.getMessage());
}
}