From 7ba391c75af025a9864aaf768d4c45bc4eaeea9a Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:06:47 -0400 Subject: [PATCH] Typo --- .../persist/entity/manager/ReferenceManifestRepository.java | 1 - .../persist/service/SupplyChainValidationService.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/manager/ReferenceManifestRepository.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/manager/ReferenceManifestRepository.java index 92554be4..8bad5f02 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/manager/ReferenceManifestRepository.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/entity/manager/ReferenceManifestRepository.java @@ -17,7 +17,6 @@ import java.util.UUID; public interface ReferenceManifestRepository extends JpaRepository { ReferenceManifest findByHexDecHash(String hexDecHash); - ReferenceManifest findByEventLogHash(String rimType, String eventLogHash); ReferenceManifest findByBase64Hash(String base64Hash); ReferenceManifest findByHexDecHashAndRimType(String hexDecHash, String rimType); @Query(value = "SELECT * FROM ReferenceManifest WHERE platformManufacturer = ?1 AND platformModel = ?2 AND rimType = 'Base'", nativeQuery = true) diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/service/SupplyChainValidationService.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/service/SupplyChainValidationService.java index d4260e88..a4c82bbd 100644 --- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/service/SupplyChainValidationService.java +++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/persist/service/SupplyChainValidationService.java @@ -321,7 +321,7 @@ public class SupplyChainValidationService { deviceName)); } else { ReferenceManifest manifest = referenceManifestRepository - .findByEventLogHash(sRim.getRimType(), sRim.getEventLogHash()); + .findByHexDecHashAndRimType(sRim.getEventLogHash(), sRim.getRimType()); if (manifest instanceof EventLogMeasurements) { eventLog = (EventLogMeasurements)manifest; }