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

[Pki-devel] [PATCH] 279 Fixed NullPointerException with external CA.



The deployment tool has been modified to overwrite the pki_issuing_ca
when configuring with external CA regardless of the default value.

Bugzilla #986901

--
Endi S. Dewata
From 56065edd48ff5d612f348013de1588ca74c79a1c Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <edewata redhat com>
Date: Tue, 23 Jul 2013 13:54:31 -0400
Subject: [PATCH] Fixed NullPointerException with external CA.

The deployment tool has been modified to overwrite the pki_issuing_ca
when configuring with external CA regardless of the default value.

Bugzilla #986901
---
 base/server/src/engine/pkiparser.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/base/server/src/engine/pkiparser.py b/base/server/src/engine/pkiparser.py
index 14e04ee1f3f424c2860b0008e9bcc9bdeeaae840..19ce9efe32dde10d344ee0f311333411cbea701d 100644
--- a/base/server/src/engine/pkiparser.py
+++ b/base/server/src/engine/pkiparser.py
@@ -942,8 +942,7 @@ class PKIConfigParser:
             elif config.str2bool(config.pki_master_dict['pki_external']):
                 # External CA
                 config.pki_master_dict['pki_security_domain_type'] = "new"
-                if not len(config.pki_master_dict['pki_issuing_ca']):
-                    config.pki_master_dict['pki_issuing_ca'] = "External CA"
+                config.pki_master_dict['pki_issuing_ca'] = "External CA"
             else:
                 # PKI CA
                 config.pki_master_dict['pki_security_domain_type'] = "new"
-- 
1.8.1.4


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