mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-30 08:04:05 +00:00
Merge pull request #408 from nsacyber/support-rim-filename-correction
Support RIM Filename Fix
This commit is contained in:
commit
7bb9d8698d
@ -285,8 +285,8 @@ public class ReferenceManifestDetailsPageController
|
|||||||
// going to have to pull the filename and grab that from the DB
|
// going to have to pull the filename and grab that from the DB
|
||||||
// to get the id to make the link
|
// to get the id to make the link
|
||||||
for (SwidResource swidRes : resources) {
|
for (SwidResource swidRes : resources) {
|
||||||
if (support != null && swidRes.getName()
|
if (support != null && swidRes.getHashValue()
|
||||||
.equals(support.getFileName())) {
|
.equalsIgnoreCase(support.getHexDecHash())) {
|
||||||
RIM_VALIDATOR.validateSupportRimHash(support.getRimBytes(),
|
RIM_VALIDATOR.validateSupportRimHash(support.getRimBytes(),
|
||||||
swidRes.getHashValue());
|
swidRes.getHashValue());
|
||||||
if (RIM_VALIDATOR.isSupportRimValid()) {
|
if (RIM_VALIDATOR.isSupportRimValid()) {
|
||||||
|
@ -84,7 +84,7 @@ public final class JsonUtils {
|
|||||||
JsonObject jsonObject = new JsonObject();
|
JsonObject jsonObject = new JsonObject();
|
||||||
|
|
||||||
if (Files.notExists(jsonPath)) {
|
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 {
|
} else {
|
||||||
try {
|
try {
|
||||||
InputStream inputStream = new FileInputStream(jsonPath.toString());
|
InputStream inputStream = new FileInputStream(jsonPath.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user