-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API docs on polaris.apache.org are broken #941
Comments
Thanks @collado-mike ! I also discovered the same. Initially I thought it was due to my recent change: #935, but the site sill breaks even after it is reverted: #942 The current error is:
|
Adding
fixes this, tested locally, got this from the following SO thread, Happy to create a PR if no one else is working on it ! Side note : Not sure how it worked before |
@singhpk234 Thanks for the solution! Just curious, how do you reproduce the issue locally. My local build works fine even without the added meta |
@HonahX thank you for your question ! as you will see the default CSP policy which is getting applied when rendering https://polaris.apache.org/in-dev/unreleased/rest-catalog-open-api/ is
which our current script violate (Note this doesn't get applied to developement env), to replicate this
To mitigate this add this policy
P.S Not an expert in this area :P, please take this with a grain of salt ! |
@singhpk234 awesome, thanks for finding the solution. If you haven't already, please open a PR 🙏🏽 |
It is still broken for me after #944. Can you confirm from your side? |
It is also broken for me. I did some search in ASF infra and found that there is a recent update (INFRA ticket on the Content Security Policy.) Specifically, the change enforcing the following rule
as documented at https://privacy.apache.org/policies/website-policy.html It seems the shortcode we are using for rendering API docs,
falls into the above category and therefore gets banned. I think a quick solution will be to redirect API docs to a swagger editor like what Iceberg site does for IRC spec: Please correct me if I misunderstand anything :) |
Yes that understanding is correct! I was able to come at the same conclusion as the give HUGO changes for serving the static contents we create is not coming into effect. It works in local as we i,e local server is serving those static contents. Though this part is tricky as they do say
Agree with you, here is the pr for the fix #950 it redirects to yaml Thank you for digging this up @HonahX definitely learned something today about ASF hosting ! |
It works now. Thanks @collado-mike, @singhpk234 and @HonahX for the investigation and fix! |
Describe the bug
API docs generated from the specs are broken on the apache site: https://polaris.apache.org/in-dev/unreleased/rest-catalog-open-api/ . Currently, they don't load at all, but previously when they did load, the links to various APIs didn't work at all.
To Reproduce
Go to https://polaris.apache.org/in-dev/unreleased/rest-catalog-open-api/
Actual Behavior
No response
Expected Behavior
No response
Additional context
No response
System information
No response
The text was updated successfully, but these errors were encountered: