#2746 py3: pki.key.archive_encrypted_data: TypeError: ... is not JSON serializable
Closed: fixed 6 years ago Opened 6 years ago by mbasti.

FreeIPA vault operation fails with py3, please see full traceback in the FreeIPA issue: https://pagure.io/freeipa/issue/7033

in PKI module, json.dumps() got bytes instead string and this caused error. IMO the data are from base64.b64encode() in function pki.key.archive_encrypted_data() but they are not decoded to string to work with JSON after.


Metadata Update from @mharmsen:
- Custom field component adjusted to General
- Custom field feature adjusted to ''
- Custom field origin adjusted to Community
- Custom field proposedmilestone adjusted to ''
- Custom field proposedpriority adjusted to ''
- Custom field reviewer adjusted to ''
- Custom field type adjusted to defect
- Custom field version adjusted to ''
- Issue priority set to: critical
- Issue set to the milestone: 10.4

6 years ago

Metadata Update from @mharmsen:
- Custom field platforms adjusted to Fedora

6 years ago

Metadata Update from @mharmsen:
- Issue assigned to ftweedal

6 years ago

commit b654e60f20b9e83833313ab89006db8f063bff1f
Author: Fraser Tweedale ftweedal@redhat.com
Date: Mon Aug 28 14:43:55 2017 +1000

KeyClient: fix json encoding in Python 3

Fixes: https://pagure.io/dogtagpki/issue/2746
Change-Id: Iec2912bb90192fec403ac94006ff5927d3526533

Metadata Update from @mharmsen:
- Issue close_status updated to: fixed
- Issue set to the milestone: 10.4.10 (was: 10.4)
- Issue status updated to: Closed (was: Open)

6 years ago

Metadata Update from @mharmsen:
- Custom field fixedinversion adjusted to pki-core-10.4.8-6.fc27

6 years ago

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/2866

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata