From 1a1d5c695c7c3ee37e933f95547268468f78ba03 Mon Sep 17 00:00:00 2001 From: Alberto Arri <30873160+al-r3@users.noreply.github.com> Date: Tue, 5 Dec 2017 14:04:12 +0000 Subject: [PATCH] Add support for TICKET_CREATED to PersistentCertificateRequestStorage (#143) --- .../common/persistence/PersistentCertificateRequestStorage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt b/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt index 5a591c1a5d..92355d55ba 100644 --- a/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt +++ b/network-management/src/main/kotlin/com/r3/corda/networkmanage/common/persistence/PersistentCertificateRequestStorage.kt @@ -139,7 +139,7 @@ class PersistentCertificateRequestStorage(private val database: CordaPersistence } } val duplicates = session.createQuery(query).resultList.filter { - it.status == RequestStatus.NEW || it.status == RequestStatus.APPROVED || it.certificateData?.certificateStatus == CertificateStatus.VALID + it.status in setOf(RequestStatus.NEW, RequestStatus.TICKET_CREATED, RequestStatus.APPROVED) || it.certificateData?.certificateStatus == CertificateStatus.VALID } return if (duplicates.isEmpty()) { Pair(legalName.x500Name, null)