-
Notifications
You must be signed in to change notification settings - Fork 6
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
[BUG] Investigate 503 #218
Comments
AFAIR if I visit that page from the browser without being authenticated into any account, I will get 503 too. So this is an issue around authentication. |
Just double-checked to be sure, it replies with a 302: I suspect the discrepancy between xrefcheck vs curl/browser might be due to some header. The most obvious suspect would be the
|
We can reproduce the xrefcheck behaviour by telling curl to follow redirects ( $ curl -IL https://gitlab.com/morley-framework/morley-infra/-/issues/new
...
HTTP/2 503 This is because the default HTTP configuration that is being used in the project follows automatically up to 10 redirect responses. I have tried to set the corresponding value to 0 and then xrefcheck shows a 302 response code. Now, even with this 302 response, xrefcheck keeps reporting it as an error. Perhaps we should also change that to not consider a 302 response as an error? |
Oh, then that's exactly #25. We have discussed this for a while, but didn't manage to make a final decision yet. Could you read that discussion and leave your thoughts, and I will reiterate over it and drop some thoughts too. |
Problem: Xrefcheck currently always follows redirect links. Solution: We are changing its default behaviour regarding redirect links to fail and report permanent redirects, and to pass for temporary redirects. Further PRs will allow the user to configure other policies.
Problem: Xrefcheck currently always follows redirect links. Solution: We are changing its default behaviour regarding redirect links to fail and report permanent redirects, and to pass for temporary redirects. Further PRs will allow the user to configure other policies.
Problem: Xrefcheck currently always follows redirect links. Solution: We are changing its default behaviour regarding redirect links to fail and report permanent redirects, and to pass for temporary redirects. Further PRs will allow the user to configure other policies.
Problem: Xrefcheck currently always follows redirect links. Solution: We are changing its default behaviour regarding redirect links to fail and report permanent redirects, and to pass for temporary redirects. Further PRs will allow the user to configure other policies.
…nagement [#218] Change redirects default behaviour
Description
In some of our gitlab projects, we have links such as
https://gitlab.com/morley-framework/morley-infra/-/issues/new
.For some reason, when xrefcheck attempts to verify these links, it gets a 503 Service Temporarily Unavailable, which causes xrefcheck to fail. As a result, our gitlab projects ignore those links with a
xrefcheck: ignore link
annotation.However, if you manually verify it using curl or using a browser, you get a 302 redirection (which would make xrefcheck pass).
xrefcheck: ignore annotation
from those gitlab projects. These are the ones I'm aware of:To Reproduce
Steps to reproduce the behavior:
However, if we check the same link via curl, it replies with a 302 redirect.
Similarly, opening the link in the browser (while not authenticated into gitlab.com) gets us redirected to
https://gitlab.com/users/sign_in
.Expected behavior
Expected the link to reply with a 302 and for xrefcheck to pass.
Environment
The text was updated successfully, but these errors were encountered: