From 6bb64604f3422e1c4f72a14707bfb6ffbeb23458 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 19 Jun 2014 17:48:03 -0400 Subject: Fixed NumberFormatException in key-request-find. Previously if a key archival failed, the REST service would return an invalid key URL, which would cause an exception when the CLI tried to parse it. The service has been fixed to return a null URL which can be detected to avoid parsing invalid value. The Python library has been modified to handle missing key URL. Ticket #1043 --- base/common/python/pki/key.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base/common/python') diff --git a/base/common/python/pki/key.py b/base/common/python/pki/key.py index 337ae76ff..5a24c2a31 100644 --- a/base/common/python/pki/key.py +++ b/base/common/python/pki/key.py @@ -183,7 +183,10 @@ class KeyRequestInfo(object): key_request_info = cls() key_request_info.request_url = attr_list['requestURL'] key_request_info.request_type = attr_list['requestType'] - key_request_info.key_url = attr_list['keyURL'] + + if 'keyURL' in attr_list: + key_request_info.key_url = attr_list['keyURL'] + key_request_info.request_status = attr_list['requestStatus'] return key_request_info -- cgit