The JSON encoder in pki.encoder module uses two lists (i.e. TYPES and NOTYPES) to indicate how to encode Python objects based on their classes. If a class is registered in TYPES, the class name will be included in JSON. If the class is registered in NOTYPES, the class name will not be included in JSON. The NOTYPES is used to encode arrays. This would become a problem if a class is used in both ways by different REST methods.
One possible solution is to check whether the object is in an array, then encode the object without class name.
Another possibility is to change the server require the class name to be included in all cases.
In either solution the NOTYPES is no longer needed.
Metadata Update from @edewata: - Issue set to the milestone: UNTRIAGED
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/1129
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.
Metadata Update from @dmoluguw: - Issue close_status updated to: migrated - Issue status updated to: Closed (was: Open)