Changed the compare to the hash value for the file instead of the filename.

This commit is contained in:
Cyrus 2021-10-27 08:58:51 -04:00
parent bb6ec6cc4b
commit b0835d1cf5

View File

@ -285,8 +285,8 @@ public class ReferenceManifestDetailsPageController
// going to have to pull the filename and grab that from the DB
// to get the id to make the link
for (SwidResource swidRes : resources) {
if (support != null && swidRes.getName()
.equalsIgnoreCase(support.getFileName())) {
if (support != null && swidRes.getHashValue()
.equalsIgnoreCase(support.getHexDecHash())) {
RIM_VALIDATOR.validateSupportRimHash(support.getRimBytes(),
swidRes.getHashValue());
if (RIM_VALIDATOR.isSupportRimValid()) {