-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
LFS push fails on authenticateToken - opStr string has 2 parts #1296
Comments
Please provide the full command you are running along with its complete output and the output of If your failing commands output includes a message like 'Errors logged to /path/to/.git/lfs/objects/logs/*.log', please provide the log file contents as well.
|
On a second look at your debugging, it seems like the object hash is passed after the action verb. However, I'd still like to narrow the issue down a bit more before patching it. |
it just passes back what I supply with the request Which part controls what's being passed to git-lfs-authenticate? |
btw, I'm using:
The command I run is simply "git push" after setting up lfs (git lfs install and git lfs trace '*bin') |
I just retried with the latest version of git-lfs (2.0.1), and I cannot reproduce the issue here.
That was the original intention. However, i just realized it will be easier to post a debug log here, there should be a line with SSH: Payload: stating the same information.
The LFS client itself, and I suspect it should not be generating such commands according to the spec. If we can confirm this, we are going to work around this client bug and file an upstream issue for it. |
[x]
):(it has some additional debugging info I added)
Description
git push with LFS enabled fails with 401 error.
I traced it precisely to this statement:
in modules/lfs/server.go
The opStr being passed does not equal to "upload" but it begins with "upload" - with space and cryptic hex after.
Sample opStr:
I'm not sure which component generates the hex stuff after upload, if it's LFS client - I might have an older version (that works OK with github LFS and git-lfs-s3 (s3 backed)).
I'm not an expert in Go, but to solve this exact issue, I did the following change:
This ensures that if the opStr happens to have something additional following "upload" - it works without failing.
I'd be happy to submit a pull request if anybody could verify whether this makes any sense.
The text was updated successfully, but these errors were encountered: