404s for pulp apache static content process unless there is a trailing slash in the URL
It is possible to get 404 for packages listed by the pulp apache static content process because of the use of relative hrefs.
If you were to visit the URL /pulp/repos/Default_Organization/Library/custom/Zoo-Product/Zoo-Repo (note the missing trailing slash) and then click on the following link:
The resultant URL would be /pulp/repos/Default_Organization/Library/custom/Zoo-Product/bear-4.1-1.noarch.rpm which is a 404.
Either absolute URLs should be used in the HREF or /pulp/repos/Default_Organization/Library/custom/Zoo-Product/Zoo-Repo should be rewritten to /pulp/repos/Default_Organization/Library/custom/Zoo-Product/Zoo-Repo/ in the apache configuration.
Steps to Reproduce¶
- Visit a pulp generated repo page
- Remove the trailing / if present in the url and revisit the page if necessary
- Click on any package link
- Note 404