summaryrefslogtreecommitdiffstats
path: root/base/ca
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-05-09 14:35:01 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-05-19 12:29:31 -0400
commitbe31509dd9a8eb710dca6e2961043cb4043f45fa (patch)
treeba31db7a5d5415ebce34645695bf1aece2be7a57 /base/ca
parent0334a7bcd62bd31ea18df4240ec42983a1b25489 (diff)
downloadpki-be31509dd9a8eb710dca6e2961043cb4043f45fa.tar.gz
pki-be31509dd9a8eb710dca6e2961043cb4043f45fa.tar.xz
pki-be31509dd9a8eb710dca6e2961043cb4043f45fa.zip
Fixed internal errors in RenewalProcessor.
The RenewalProcessor was throwing NumberFormatException if the renewal request contains an empty serial number. The code has been modified to check for null and empty string. If the serial number is unavailable, the code will try to get the serial number from the client certificate. If that is unavailable either, the code has been fixed to return a proper message. Ticket #999
Diffstat (limited to 'base/ca')
-rw-r--r--base/ca/src/org/dogtagpki/server/ca/rest/CertRequestService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/ca/src/org/dogtagpki/server/ca/rest/CertRequestService.java b/base/ca/src/org/dogtagpki/server/ca/rest/CertRequestService.java
index 74f7b52f6..969cfd1a6 100644
--- a/base/ca/src/org/dogtagpki/server/ca/rest/CertRequestService.java
+++ b/base/ca/src/org/dogtagpki/server/ca/rest/CertRequestService.java
@@ -144,6 +144,9 @@ public class CertRequestService extends PKIService implements CertRequestResourc
throw new BadRequestException(e.toString());
} catch (EBaseException e) {
throw new PKIException(e.toString());
+ } catch (Exception e) {
+ CMS.debug(e);
+ throw new PKIException(e.toString());
}
// this will return an error code of 200, instead of 201