Bug #35459
closedNon-enabled repository types make it into the apipie help-text
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.
Updated by Ian Ballou about 2 years ago
- Subject changed from Non-enabled repository types make it into the apipie help-text to Non-enabled repository types make it into the apipie help-text
API is GET /katello/api/repositories/repository_types
Updated by Ian Ballou about 2 years ago
- Target version set to Katello 4.7.0
- Triaged changed from No to Yes
Updated by The Foreman Bot about 2 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ian Ballou
- Pull request https://github.com/Katello/katello/pull/10259 added
Updated by The Foreman Bot about 2 years ago
- Pull request https://github.com/Katello/hammer-cli-katello/pull/864 added
Updated by The Foreman Bot about 2 years ago
- Fixed in Releases Katello 4.7.0 added
Updated by Anonymous about 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|71959b720220baaef8b79d699c25093671aaba7c.