pki.handle_exceptions() expects that the body of a HTTPException is always valid JSON. The expection doesn't hold true in some cases. For example in https://fedorahosted.org/freeipa/ticket/5129 an authentication error has no JSON body. The JSONDecodeError hides the true cause of the error.
I have posted [PATCH 011] on the pki-devel list.
Pushed in 9fa1d0c968977ef23e26556b0a8e8e76b32c7288
Metadata Update from @cheimes: - Issue assigned to cheimes - Issue set to the milestone: 10.2.6
Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.
This issue has been cloned to GitHub and is available here: https://github.com/dogtagpki/pki/issues/2047
If you want to receive further updates on the issue, please navigate to the GitHub issue and click on Subscribe button.
Subscribe
Thank you for understanding, and we apologize for any inconvenience.
Login to comment on this ticket.