[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Pki-devel] [PATCH] pki-cfu-0150-Ticket-2428-broken-request-links-for-CA-s-system-cer.patch



Attached please find the patch that fixes the broken link from cert->request or just simply visiting request records from agent page on CA's system certs.

thanks,

Christina

>From 4f4e08db5034daa63519fa68d766f6d5b37651d6 Mon Sep 17 00:00:00 2001
From: Christina Fu <cfu dhcp-16-189 sjc redhat com>
Date: Thu, 4 Aug 2016 16:40:06 -0700
Subject: [PATCH] Ticket#2428 broken request links for CA's system certs in
 agent request viewing This patch fixes the issue that when an agent visit one
 of the CA's system cert request records, exception is thrown.

---
 .../src/com/netscape/cms/servlet/profile/ProfileReviewServlet.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/base/server/cms/src/com/netscape/cms/servlet/profile/ProfileReviewServlet.java b/base/server/cms/src/com/netscape/cms/servlet/profile/ProfileReviewServlet.java
index 3cbf0f96b6ba8e2cac8e967ee796db4df79bc121..dbaf310cf49991d8ab598bedee0ac9e83da2c80f 100644
--- a/base/server/cms/src/com/netscape/cms/servlet/profile/ProfileReviewServlet.java
+++ b/base/server/cms/src/com/netscape/cms/servlet/profile/ProfileReviewServlet.java
@@ -425,13 +425,15 @@ public class ProfileReviewServlet extends ProfileServlet {
                     defValue = def.getValue(defName, locale, req);
                 } catch (EPropertyException ee) {
                     CMS.debug("ProfileReviewServlet: " + ee.toString());
+                } catch (Exception exp) {
+                    CMS.debug("ProfileReviewServlet: " + exp.toString());
                 }
 
                 defset.set(ARG_DEF_ID, defName);
                 defset.set(ARG_DEF_SYNTAX, defSyntax);
                 defset.set(ARG_DEF_CONSTRAINT, defConstraint);
                 defset.set(ARG_DEF_NAME, defValueName);
-                defset.set(ARG_DEF_VAL, defValue);
+                defset.set(ARG_DEF_VAL, (defValue!=null)? defValue:"");
                 deflist.add(defset);
             }
         }
-- 
2.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]