diff options
author | awnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-06-25 23:49:57 +0000 |
---|---|---|
committer | awnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-06-25 23:49:57 +0000 |
commit | e00d554d9e85291bacd90a6aa14430080f409061 (patch) | |
tree | e52f7e7b96c5413493c3ca769a0f877862b39b2f /pki/base/common/src/com/netscape/cms/servlet/cert | |
parent | 5299c0a8228433552c7607e1f56cc52f810813bb (diff) | |
download | pki-e00d554d9e85291bacd90a6aa14430080f409061.tar.gz pki-e00d554d9e85291bacd90a6aa14430080f409061.tar.xz pki-e00d554d9e85291bacd90a6aa14430080f409061.zip |
Fix for bug #443687
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@55 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/servlet/cert')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/servlet/cert/GetCRL.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/GetCRL.java b/pki/base/common/src/com/netscape/cms/servlet/cert/GetCRL.java index cea61e65c..9eee4e43d 100644 --- a/pki/base/common/src/com/netscape/cms/servlet/cert/GetCRL.java +++ b/pki/base/common/src/com/netscape/cms/servlet/cert/GetCRL.java @@ -195,6 +195,17 @@ CMS.debug("**** mFormPath before getTemplate = "+mFormPath); header.addStringValue("crlDisplayType", crlDisplayType); } + if ((op.equals("checkCRLcache") || + (op.equals("displayCRL") && crlDisplayType != null && crlDisplayType.equals("cachedCRL"))) && + (crlIP == null || (!crlIP.isCRLCacheEnabled()) || crlIP.isCRLCacheEmpty())) { + cmsReq.setError( + CMS.getUserMessage( + ((crlIP != null && crlIP.isCRLCacheEnabled() && crlIP.isCRLCacheEmpty())? + "CMS_GW_CRL_CACHE_IS_EMPTY":"CMS_GW_CRL_CACHE_IS_NOT_ENABLED"), crlId)); + cmsReq.setStatus(CMSRequest.ERROR); + return; + } + byte[] crlbytes = null; if (op.equals("importDeltaCRL") || op.equals("getDeltaCRL") || |