Project

General

Profile

Actions

Bug #35459

closed

Non-enabled repository types make it into the apipie help-text

Added by Ian Ballou about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2043126

Description of problem:
Non-enabled repository types make it into the apipie help-text, such as "deb" or "python".

Version-Release number of selected component (if applicable):
Katello 4.2+

How reproducible:
Always.

Steps to Reproduce:
1. hammer repository create --help

Actual results:
--content-type ENUM Type of repo
Possible value(s): 'ansible_collection', 'deb', 'docker', 'file', 'ostree',
'python', 'yum'

Expected results:
Don't include types not supported by the smart proxy.

Additional info:
The issue is due to how the apipie cache is generated statically. Since it's not generated with a running Foreman, we cannot use the enabled repository types.

For a medium-term fix, we could remove the repo types completely from the apipie definition and add in an endpoint to check the enabled content types.

For a longer-term fix, we could switch to having the apipie cache generating dynamically in Foreman. That will require more consideration.

Actions

Also available in: Atom PDF