summaryrefslogtreecommitdiffstats
path: root/pki/base
diff options
context:
space:
mode:
authorawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-11-03 22:17:45 +0000
committerawnuk <awnuk@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-11-03 22:17:45 +0000
commit5b4ff55e683c897a7b48fed2717bb0e7e7049b21 (patch)
treef6d6a7155516241bae15fdc053cacef89cf97d67 /pki/base
parentc91f680c782ba864c75945023d8c0ded06ee2807 (diff)
downloadpki-5b4ff55e683c897a7b48fed2717bb0e7e7049b21.tar.gz
pki-5b4ff55e683c897a7b48fed2717bb0e7e7049b21.tar.xz
pki-5b4ff55e683c897a7b48fed2717bb0e7e7049b21.zip
Fixed bugzilla bug #747019.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2289 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java b/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java
index 2e0508ba0..bfa971052 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java
@@ -213,6 +213,22 @@ public class CertReqParser extends ReqParser {
String parami =
IRequest.SERVER_ATTRS + LB + String.valueOf(saCounter++) + RB;
+ if (name.equalsIgnoreCase(IRequest.ISSUED_CERTS) && mDetails &&
+ (req.getRequestStatus().toString().equals(RequestStatus.COMPLETE_STRING) ||
+ req.getRequestType().equals(IRequest.GETREVOCATIONINFO_REQUEST))) {
+ X509CertImpl issuedCert[] =
+ req.getExtDataInCertArray(IRequest.ISSUED_CERTS);
+ if (issuedCert != null && issuedCert[0] != null) {
+ val = "<pre>"+CMS.getCertPrettyPrint(issuedCert[0]).toString(l)+"</pre>";
+ }
+ } else if (name.equalsIgnoreCase(IRequest.CERT_INFO) && mDetails) {
+ X509CertInfo[] certInfo =
+ req.getExtDataInCertInfoArray(IRequest.CERT_INFO);
+ if (certInfo != null && certInfo[0] != null) {
+ val = "<pre>"+certInfo[0].toString()+"</pre>";
+ }
+ }
+
valstr = expandValue(prefix + parami + ".value", val);
String rawJS = "new Object;\n\r" +
prefix + parami + ".name=\"" +