[Pki-devel] [PATCH 011] Handle JSON decode error in handle_exceptions()

Christian Heimes cheimes at redhat.com
Wed Jul 15 16:00:36 UTC 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-cheimes-0011-Handle-JSON-decode-error-in-handle_exceptions.patch
Type: text/x-patch
Size: 7175 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20150715/2a337874/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20150715/2a337874/attachment.sig>


More information about the Pki-devel mailing list