Bug 2213777
Summary: | Can't remove GPG and SSL Keys from existing Product using the API | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Tselios <tselios.petros> |
Component: | Repositories | Assignee: | Evgeni Golov <egolov> |
Status: | CLOSED ERRATA | QA Contact: | Ian Ballou <iballou> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.13.0 | CC: | egolov, iballou, pcreech, rlavi |
Target Milestone: | 6.14.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-katello-4.9.0.1-1,rubygem-katello-4.9.0.1-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-08 14:19:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Peter Tselios
2023-06-09 11:03:04 UTC
Moving over to "Repositories" component, as that's the one responsible for the "Products" model and API. The API doc for the products update call looks like this (abbreviated): { "doc_url": "/apidoc/v2/products/update", "name": "update", "apis": [ { "api_url": "/katello/api/products/:id", "http_method": "PUT", "short_description": "Updates a product", "deprecated": null } ], "formats": null, "full_description": "", "errors": [], "params": [ … { "name": "gpg_key_id", "full_name": "gpg_key_id", "description": "\n<p>Identifier of the GPG key</p>\n", "required": false, "allow_nil": false, "allow_blank": false, "validator": "Must be a number.", "expected_type": "numeric", "metadata": null, "show": true, "validations": [], "deprecated": false }, { "name": "ssl_ca_cert_id", "full_name": "ssl_ca_cert_id", "description": "\n<p>Idenifier of the SSL CA Cert</p>\n", "required": false, "allow_nil": false, "allow_blank": false, "validator": "Must be a number.", "expected_type": "numeric", "metadata": null, "show": true, "validations": [], "deprecated": false }, { "name": "ssl_client_cert_id", "full_name": "ssl_client_cert_id", "description": "\n<p>Identifier of the SSL Client Cert</p>\n", "required": false, "allow_nil": false, "allow_blank": false, "validator": "Must be a number.", "expected_type": "numeric", "metadata": null, "show": true, "validations": [], "deprecated": false }, { "name": "ssl_client_key_id", "full_name": "ssl_client_key_id", "description": "\n<p>Identifier of the SSL Client Key</p>\n", "required": false, "allow_nil": false, "allow_blank": false, "validator": "Must be a number.", "expected_type": "numeric", "metadata": null, "show": true, "validations": [], "deprecated": false }, … because of the `allow_nil: false`, compliant API clients (like the Ansible Collection) refuse to unset the parameter once set. Created redmine issue https://projects.theforeman.org/issues/36497 from this bug Upstream bug assigned to egolov Upstream bug assigned to egolov Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36497 has been resolved. Upstream bug assigned to egolov Upstream bug assigned to egolov Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6818 |