|
From: Jaime H. <hab...@gm...> - 2019-07-25 22:59:10
|
If a publisher with the following settings is configured:
- *No direct publishing, only use queue:* Disabled
- *Keep successfully published items in database:* Enabled
- *Use queue for CRLs:* Enabled
And it publishes a CRL successfully, the CRL will be kept in the publisher
queue with STATUS_PENDING anyway and something like a Publish Queue Process
Service will be required to process it again and mark it with STATUS_SUCCESS,
resulting in the CRL published twice, instead of only once.
A simple patch follows:
---
modules/ejbca-ejb/src/org/ejbca/core/ejb/ca/publisher/PublisherSessionBean.java
(revision 32884)
+++
modules/ejbca-ejb/src/org/ejbca/core/ejb/ca/publisher/PublisherSessionBean.java
(date 1563994959367)
@@ -309,7 +309,7 @@
pqvd.setUserDN(issuerDn);
String fp = CertTools.getFingerprintAsString(incrl);
try {
- publisherQueueSession.addQueueData(id,
PublisherConst.PUBLISH_TYPE_CRL, fp, pqvd, PublisherConst.STATUS_PENDING);
+ publisherQueueSession.addQueueData(id,
PublisherConst.PUBLISH_TYPE_CRL, fp, pqvd, publishStatus);
String msg =
intres.getLocalizedMessage("publisher.storequeue", name, fp, "CRL");
log.info(msg);
} catch (CreateException e) {
--
Jaime Hablutzel - +51 994690880
|