Skip to content
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

Closed
WillHipschman opened this issue Feb 10, 2016 · 4 comments
Closed

403 Responses Can Cause the LFS Client to Loop Infinitely #993

WillHipschman opened this issue Feb 10, 2016 · 4 comments

Comments

@WillHipschman
Copy link

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.

@WillHipschman
Copy link
Author

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.

@technoweenie
Copy link
Contributor

There should be a limit already, but you're clearly hitting a case that doesn't have one. Can you replicate this somehow?

@WillHipschman
Copy link
Author

Yeah, the repro is

  1. Create an account at https://www.visualstudio.com/en-us/products/visual-studio-team-services-vs.aspx
  2. Create a git project and clone the repo locally
  3. Set up LFS and push the .gitattributes file
  4. Set deny permissions on the repo and master branch (http://stackoverflow.com/questions/28134314/protecting-a-git-branch-in-visual-studio-online)
  5. Try to push an LFS object.

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 :)

@sinbad sinbad mentioned this issue Mar 9, 2016
17 tasks
@ttaylorr
Copy link
Contributor

This can be closed by: #2516.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants