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 #1

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
Actions #2

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
Actions #3

Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases Katello 4.8.0 added
Actions #4

Updated by Jeremy Lenz almost 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF