The rim hash validation icon is coming up red when both base and support RIMs are loaded. This fixes that issue.

This commit is contained in:
Cyrus 2021-10-26 11:09:36 -04:00
parent 3f9c6c9d44
commit bb6ec6cc4b
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ public class ReferenceManifestDetailsPageController
// to get the id to make the link
for (SwidResource swidRes : resources) {
if (support != null && swidRes.getName()
.equals(support.getFileName())) {
.equalsIgnoreCase(support.getFileName())) {
RIM_VALIDATOR.validateSupportRimHash(support.getRimBytes(),
swidRes.getHashValue());
if (RIM_VALIDATOR.isSupportRimValid()) {

View File

@ -84,7 +84,7 @@ public final class JsonUtils {
JsonObject jsonObject = new JsonObject();
if (Files.notExists(jsonPath)) {
LOGGER.error(String.format("No file found at %s.", jsonPath.toString()));
LOGGER.warn(String.format("No file found at %s.", jsonPath.toString()));
} else {
try {
InputStream inputStream = new FileInputStream(jsonPath.toString());