Bug 56329 - Bundle swagger web-ui dependencies instead of loading external resources
Bundle swagger web-ui dependencies instead of loading external resources
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: ucsschool-id-connector
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
https://help.univention.com/t/problem...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-17 15:45 CEST by Jan-Luca Kiok
Modified: 2023-08-08 09:25 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023080721000141
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Luca Kiok univentionstaff 2023-07-17 15:45:47 CEST
+++ This bug was initially created as a clone of Bug #56314 +++


The Swagger UI of Kelvin loads resources (JS and CSS) from external sources when opened, most notably

- https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui-bundle.js
- https://cdn.jsdelivr.net/npm/swagger-ui-dist@4/swagger-ui.css
- https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js

It is possible to bundle this into the container instead:

https://fastapi.tiangolo.com/advanced/extending-openapi/?h=#self-hosting-javascript-and-css-for-docs
Comment 2 Christina Scheinig univentionstaff 2023-08-08 09:16:33 CEST
We had a support case, where the customer got an empty page, because cdn.jsdelivr.net was blocked by a proxy or firewall.