diff options
author | awnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-08-08 00:03:29 +0000 |
---|---|---|
committer | awnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-08-08 00:03:29 +0000 |
commit | 6e3fb44241c6571ccf2db0b99f845e478a0a92f0 (patch) | |
tree | 55349717aef5c5b3ea72b05fc902f6ee9bfb3616 /pki/base/common/src/com/netscape/cms/profile/common | |
parent | 611661e2389368163793a59c0728ad4371d9aee1 (diff) | |
download | pki-6e3fb44241c6571ccf2db0b99f845e478a0a92f0.tar.gz pki-6e3fb44241c6571ccf2db0b99f845e478a0a92f0.tar.xz pki-6e3fb44241c6571ccf2db0b99f845e478a0a92f0.zip |
Fix for bug #453834.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@79 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/profile/common')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/pki/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java b/pki/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java index b831ad2f2..21788a51e 100644 --- a/pki/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java +++ b/pki/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java @@ -247,19 +247,21 @@ public class CAEnrollProfile extends EnrollProfile { else request.setExtData("isEncryptionCert", "false"); - // request handling - Enumeration names = ca.getRequestListenerNames(); - - if (names != null) { - while (names.hasMoreElements()) { - String name = (String) names.nextElement(); - - CMS.debug("CAEnrollProfile: listener " + name); - IRequestListener listener = ca.getRequestListener(name); - - CMS.debug("CAEnrollProfile: listener=" + listener); - if (listener != null) { - listener.accept(request); + IRequestNotifier notifier = ca.getRequestNotifier(); + if (notifier != null && notifier.isPublishingQueueEnabled()) { + CMS.debug("about to addToNotify"); + notifier.addToNotify(request); + CMS.debug("addToNotify done"); + } else { + Enumeration names = ca.getRequestListenerNames(); + if (names != null) { + while (names.hasMoreElements()) { + String name = (String) names.nextElement(); + CMS.debug("CAEnrollProfile: listener " + name); + IRequestListener listener = ca.getRequestListener(name); + if (listener != null) { + listener.accept(request); + } } } } |