diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-06-20 08:18:20 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-06-20 20:05:11 +0200 |
commit | 4aa28a72c7deea46f8c7bc407153fd50030bb311 (patch) | |
tree | e52d5009668ea03895723b3aeb806a9f9b69ff51 /base/ocsp/src | |
parent | 53d695a365b8a104b507970381a6a88df8624cd9 (diff) | |
download | pki-4aa28a72c7deea46f8c7bc407153fd50030bb311.tar.gz pki-4aa28a72c7deea46f8c7bc407153fd50030bb311.tar.xz pki-4aa28a72c7deea46f8c7bc407153fd50030bb311.zip |
Fixed OCSP service error handling.
Some OCSP-related classes have been modified to detect errors and
handle exceptions properly.
https://pagure.io/dogtagpki/issue/2652
Change-Id: Ifd054c47d04ff106120df2d7f3705366c7de9da9
Diffstat (limited to 'base/ocsp/src')
-rw-r--r-- | base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java index 14dd33813..3f702c317 100644 --- a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java +++ b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java @@ -455,9 +455,8 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, return response; } catch (Exception e) { - CMS.debug(e); log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_OCSP_SIGN_RESPONSE", e.toString())); - return null; + throw new EBaseException(e); } } |