-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
adoptium api swagger page anf URLs generated for AIX #321
Comments
I'm not able to reproduce the problem Michael (@aixtools). I get a 404 NotFound error as expected rather than a NetworkError which is what you noted. Please can you retry and see if the networking error still occurs? |
I think the issue is you have given a url that actually exists, so should not 404, in fact will 302 you to the binary you requested, unfortunately what probably happened is that your browser blocked the 302 redirect to github due to CORS. |
Leaving this open in case we can figure out a CORS workaround. |
I don't think it is a 302 blocking - why for this site only? a) iirc, the old swagger api redirect to the new site - and those work fine. |
I could reproduce the problem with firefox. Debugging it on firefox shows a CORS Missing Allow origin error. Looking at the configuration at Line 6 in 037533b
the problem might be with the use of wildcards:
quarkus.http.cors.methods does not support a '*' wildcard afaict from the source code: so the configuration would specify that for a '*' request, the cors headers are added, but a request method like that does not exist ofc. I would suggest to explicitly set this to 'GET, OPTIONS', or leave that setting empy which should default to all afaict. Link to the quarkus documentation: https://quarkus.io/guides/http-reference#cors-filter |
I just add some details to explain that the problem is that the browser doesn't allow to follow the 307 redirection to GitHub.
|
ty for chiming in. I tested locally to update the cors-filter by explicitly specifying the methods, but it did not change a thing, so the request did not include a Access-Control-Allow-Origin header that would be required. I had the same problem for other things that are based on swaggerui (httpbin for example), so I guess the problem is in the way the swaggerui code does the request. I am not an expert in javascript so cant really help in fixing that, but it would be something that would be worthwhile to fix upstream imho. |
Describe the bug
The feedback from the site is confusing at best.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
Additional context
Basically, if I see this:
feature_version
, e.g., 10swagger
than supportedfeature_versions
The text was updated successfully, but these errors were encountered: