#9345 Convert PKI API to use JSON instead of XML
Closed: duplicate by rcritten. Opened by rcritten.

Issue

The PKI REST API supports requests in both XML and an JSON. They have an intention to drop XML in order to reduce the number of dependencies it has. This means that IPA needs to switch to JSON before they do that.

Most if not all of the XML code is in ipaserver/plugins/dogtag.py

It currently has rather excellent documentation on the XML formatting. It would be nice to retain the equivalent for JSON.


Closing as duplicate of https://pagure.io/freeipa/issue/3473

Metadata Update from @rcritten:
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

master:

  • ed52142c400576820cca7486b28f6db62abde78a Use the PKI REST API wherever possible instead of XML
  • 317e7061d0f68e6fed671c0fe56cf4db61f3e2d9 Adjust test to handle revocation reason REMOVE_FROM_CRL

ipa-4-11:

  • 0b870694f62701534a32fdb4cbdd5c06a3ea4559 Use the PKI REST API wherever possible instead of XML
  • 37b433d4a79ae3f9160a27b6a03a58f371d2bd34 Adjust test to handle revocation reason REMOVE_FROM_CRL

ipa-4-10:

  • f70ebb5dad9225ff41605250449385a3b1756727 Use the PKI REST API wherever possible instead of XML
  • a4e799235549396ae4c0da20ab1690e446cf1f46 Adjust test to handle revocation reason REMOVE_FROM_CRL

master:

  • 56a2bc5775ae104c27353d8fac4abafcc58324bf The PKI JSON API the revocation reason key may be case-sensitive
  • caccd6c693fe86e09a84f7fe7263a08d34a22d7e WIP: Get the PKI version from the remote to determine the argument

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-14842

ipa-4-11:

  • d4271391adc45c781092db0fb89b802743a9dda8 The PKI JSON API the revocation reason key may be case-sensitive
  • 0539d97f3e9d2b7d80549ff08d78fe55afcc2dbb WIP: Get the PKI version from the remote to determine the argument

ipa-4-10:

  • 50bf1fb1869ee02b7a567a8924eeb5109eacaced The PKI JSON API the revocation reason key may be case-sensitive
  • 5fb600daece48254e2b86c53b8f0ff0a08d0ae9a WIP: Get the PKI version from the remote to determine the argument
Metadata