Project

General

Profile

Actions

Bug #35961

closed

Unable to disable SCA for an organization without manifest using API

Added by Jeremy Lenz almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions

Also available in: Atom PDF