Actions
Story #1512
closedAs a user, I can explore a yum repository via a browser
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.8.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Quarter:
Description
Since we've moved to serving all our files with mod_xsendfile and passing all requests to the content WSGI application, the web browser experience is not good. Error pages are vague (for 4XX HTTP codes) and there is no directory indexes. This is not required for the repositories to work, but is a very nice thing to have.
I'm not sure if Django provides easy ways to do directory indexes, but adding better error pages should be straight-forward. The content WSGI app is contained in platform's server/pulp/server/content/web/ directory.
Actions
Create a simple directory index for the content.wsgi app.
In the past we were able to use Apache's directory index feature. However, for lazy content we pass the request through to the content WSGI application and are unable to use this feature. This introduces a simple template that lists the directories and files within a requested directory, as well as clear HTTP 404 and HTTP 500 error pages.
closes #1512