Project

Profile

Help

Issue #8797

Pulp location of CSS etc for API browser (and/or dependancies)

Added by wibbit 2 months ago. Updated 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

While testing the API web interface, I found that it looked "particularly bad" (see attached).

Digging through the web page code, I think this is down to the fact that there are numerous references to "/assets" as a URL,

/assets/rest_framework/css/bootstrap.min.css /assets/rest_framework/css/bootstrap-tweaks.css /assets/rest_framework/css/prettify.css /assets/rest_framework/css/default.css

As well ass /assets/rest_framework/js/jquery-3.5.1.min.js /assets/rest_framework/js/ajax-form.js /assets/rest_framework/js/csrf.js /assets/rest_framework/js/bootstrap.min.js /assets/rest_framework/js/prettify-min.js /assets/rest_framework/js/default.js

I've not used the pulp installer, and am using HAProxy as the reverse proxy, as such I've had to try and reverse engineer the HAProxy settings,

I can see two places where URL destinations appear to be set. https://github.com/pulp/pulp_installer/blob/a00dfd83c397c4b2074f79431a92c23abaac3b25/roles/pulp_webserver/templates/nginx.conf.j2 and https://github.com/pulp/pulp_installer/blob/a00dfd83c397c4b2074f79431a92c23abaac3b25/roles/pulp_webserver/templates/pulp-vhost.conf.j2

Neither of which appears to point to an /assets location, aside from the nginx config which has a catch-all of /

However even after setting that, the files are still not accessible.

So the second part of the question, is what supplies the files listed above.

FYI, I have djangorestframework 3.12.4 installed, which looks like it satisfies the file dependencies if nothing else.

PulpV3 Api Browser.PNG (59.5 KB) PulpV3 Api Browser.PNG wibbit, 05/24/2021 09:50 AM
250

History

#1 Updated by daviddavis 2 months ago

  • Triaged changed from No to Yes

Please register to edit this issue

Also available in: Atom PDF