Bug #29659
closedMissing '/' at the end of relative_path for Pulp 3 yum repos causes 404s on clients
Description
I installed the Pulp 3 rpm plugin on my Katello server and configured apache to serve the Pulp 3 yum content. I then attached an el8 client and tried to install rpms. I got 404s and realized that my repository's base url was missing a trailing slash, which Pulp 3 seems to require.
To remedy this, I use subscription-manager repo-override to add in the trailing slash. However, I noticed that my bound_repositories list wasn't being updated for the host. In update_repositories_by_paths(paths), the bindable_path for my repo had the trailing slash, but the query to find a matching Katello repo returned nothing since the repo's relative_path did not have the trailing slash: https://github.com/Katello/katello/blob/master/app/models/katello/host/content_facet.rb#L62
The root of the issue is the missing trailing slash in the relative_paths. The fix might not be so simple as just adding the trailing slash. We should check if Red Hat repositories are affected. It is likely that they are.