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

[Pki-devel] [PATCH] 815 Added cert validation error message in selftest log.



To help troubleshooting the selftest log has been modified to
include the cert validation error message returned by JSS.

https://fedorahosted.org/pki/ticket/2436

Pushed to master (10.4) under one-liner/trivial rule.

--
Endi S. Dewata
>From 0fd31368d871c513c9833ca02bc08d15a48d6aa5 Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <edewata redhat com>
Date: Fri, 12 Aug 2016 04:42:25 +0200
Subject: [PATCH] Added cert validation error message in selftest log.

To help troubleshooting the selftest log has been modified to
include the cert validation error message returned by JSS.

https://fedorahosted.org/pki/ticket/2436
---
 .../src/com/netscape/cms/selftests/common/SystemCertsVerification.java  | 2 +-
 base/server/cmsbundle/src/LogMessages.properties                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/server/cms/src/com/netscape/cms/selftests/common/SystemCertsVerification.java b/base/server/cms/src/com/netscape/cms/selftests/common/SystemCertsVerification.java
index e4fc1cbe2554180762dbdd331ab08de2cf9052bb..cc52f832b1e00c9419290b8cd10efb3c5529d26c 100644
--- a/base/server/cms/src/com/netscape/cms/selftests/common/SystemCertsVerification.java
+++ b/base/server/cms/src/com/netscape/cms/selftests/common/SystemCertsVerification.java
@@ -200,7 +200,7 @@ public class SystemCertsVerification
         } catch (Exception e) {
             String logMessage = CMS.getLogMessage(
                     "SELFTESTS_COMMON_SYSTEM_CERTS_VERIFICATION_FAILURE",
-                    getSelfTestName());
+                    getSelfTestName(), e.getMessage());
             mSelfTestSubsystem.log(logger, logMessage);
             throw e;
         }
diff --git a/base/server/cmsbundle/src/LogMessages.properties b/base/server/cmsbundle/src/LogMessages.properties
index 12c580a7d2a268b89f813c21ec218a0064db6869..0bcbcc543107376ae008c7a311b9f3c7b25c3361 100644
--- a/base/server/cmsbundle/src/LogMessages.properties
+++ b/base/server/cmsbundle/src/LogMessages.properties
@@ -2766,7 +2766,7 @@ SELFTESTS_PARAMETER_WAS_NULL={0}:  a self test parameter was null
 SELFTESTS_MISSING_NAME={0}:  the self test property name {1} does not exist
 SELFTESTS_MISSING_VALUES={0}:  the self test property name {1} contained no value(s)
 SELFTESTS_INVALID_VALUES={0}:  the self test property name {1} contained invalid value(s)
-SELFTESTS_COMMON_SYSTEM_CERTS_VERIFICATION_FAILURE={0}: system certs verification failure
+SELFTESTS_COMMON_SYSTEM_CERTS_VERIFICATION_FAILURE={0}: system certs verification failure: {1}
 SELFTESTS_COMMON_SYSTEM_CERTS_VERIFICATION_SUCCESS={0}: system certs verification success
 SELFTESTS_CA_IS_NOT_PRESENT={0}:  CA is NOT present
 SELFTESTS_CA_IS_NOT_INITIALIZED={0}:  CA is NOT yet initialized
-- 
2.5.5


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