Bug #35961
closedUnable to disable SCA for an organization without manifest using API
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2159974
Description of problem:
For some reason, API endpoints
/katello/api/organizations/:organization_id/simple_content_access/*
complain about organizations not having manifest imported.
However, I am to disable SCA for such organization using UI with no issues.
My scenario:
I'm using custom products/repos within an organization with no manifest (it is not required) and I'd like to attach subs for these products to a host.
Version-Release number of selected component (if applicable):
6.13.0-6.0
Steps to Reproduce:
1. curl -sku user:pass -H "content-type: application/json" -X PUT https://$(hostname)/katello/api/organizations/22/simple_content_access/disable
Actual results: {"displayMessage":"Current organization does not have a manifest imported.","errors":["Current organization does not have a manifest imported."]}
Expected results:
since this works using UI even on orgs with no manifest imported, I see no reason for this not to work via API/CLI
Updated by The Foreman Bot almost 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Jeremy Lenz
- Pull request https://github.com/Katello/katello/pull/10422 added
Updated by Jeremy Lenz almost 2 years ago
- Subject changed from Unable to disable SCA for an organization without manifest using API to Unable to disable SCA for an organization without manifest using API
- Category set to Subscriptions
- Target version set to Katello 4.7.2
- Triaged changed from No to Yes
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases Katello 4.8.0 added
Updated by Jeremy Lenz almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|186a5038776205c1a4d8fcdc2b71489ac1d4227f.