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
403 Responses Can Cause the LFS Client to Loop Infinitely #993
Comments
I was able to fix this on the server by making sure that InfoRefs receive-pack calls always return the same exception that LFS calls do. The issue still exists in the client though. |
There should be a limit already, but you're clearly hitting a case that doesn't have one. Can you replicate this somehow? |
Yeah, the repro is
I can fix this, but it won't happen until next week sometime. I just wanted to make sure it's recorded as a known issue :) |
This can be closed by: #2516. |
The LFS client retries 403 response codes.
Because the LFS server and the git server can be separate endpoints, it is possible that a user has permission for the git server but not the LFS server.
In this case, if there is a credential manager installed, the credentials will not be reset, and LFS will use them on each subsequent request without ever invalidating them.
We should add a limit on the number of times LFS retries, or handle 403s in a smarter way.
The text was updated successfully, but these errors were encountered: