diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-07-15 17:55:05 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-07-15 21:19:54 +0200 |
commit | 9fa1d0c968977ef23e26556b0a8e8e76b32c7288 (patch) | |
tree | 9acac7d02a5020e204de639c69d25e70a4b654f7 /specs | |
parent | 4aa89241e3a0423198cc6dce1f6f193eca74cac6 (diff) | |
download | pki-9fa1d0c968977ef23e26556b0a8e8e76b32c7288.tar.gz pki-9fa1d0c968977ef23e26556b0a8e8e76b32c7288.tar.xz pki-9fa1d0c968977ef23e26556b0a8e8e76b32c7288.zip |
Handle JSON decode error in handle_exceptions()
pki.handle_exceptions() raises a JSON decode exception when the body of
the HTTPException is not a valid JSON string. The JSON exception hides
the true error message.
The patch also fixes a bug in PKIException.from_json(). The code and
ClassName attribute are now correctly set. Finally we have our first
unit test.
https://fedorahosted.org/pki/ticket/1488
https://fedorahosted.org/freeipa/ticket/5129
Diffstat (limited to 'specs')
0 files changed, 0 insertions, 0 deletions