summaryrefslogtreecommitdiffstats
path: root/specs
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-07-15 17:55:05 +0200
committerChristian Heimes <cheimes@redhat.com>2015-07-15 21:19:54 +0200
commit9fa1d0c968977ef23e26556b0a8e8e76b32c7288 (patch)
tree9acac7d02a5020e204de639c69d25e70a4b654f7 /specs
parent4aa89241e3a0423198cc6dce1f6f193eca74cac6 (diff)
downloadpki-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