mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-06-21 00:23:11 +00:00
Modified the request class that handles uploading, deleting and other associated ACA actions, to only delete multiple associated certificates if the certificate being deleted is a base platform certificate. (#155)
This commit is contained in:
@ -261,6 +261,8 @@ public class CertificateRequestPageController extends PageController<NoPageParam
|
|||||||
} else {
|
} else {
|
||||||
if (certificateType.equals(PLATFORMCREDENTIAL)) {
|
if (certificateType.equals(PLATFORMCREDENTIAL)) {
|
||||||
PlatformCredential platformCertificate = (PlatformCredential) certificate;
|
PlatformCredential platformCertificate = (PlatformCredential) certificate;
|
||||||
|
if (platformCertificate.isBase()) {
|
||||||
|
// only do this if the base is being deleted.
|
||||||
List<PlatformCredential> sharedCertificates = getCertificateByBoardSN(
|
List<PlatformCredential> sharedCertificates = getCertificateByBoardSN(
|
||||||
certificateType,
|
certificateType,
|
||||||
platformCertificate.getPlatformSerial(),
|
platformCertificate.getPlatformSerial(),
|
||||||
@ -275,6 +277,7 @@ public class CertificateRequestPageController extends PageController<NoPageParam
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
certificate.archive();
|
certificate.archive();
|
||||||
certificateManager.update(certificate);
|
certificateManager.update(certificate);
|
||||||
|
Reference in New Issue
Block a user