-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 Inconsitency with Authentication on Gitea <1.9 #7219
Comments
@lunny this is what you and I were talking about earlier. |
@storrgie I tried to reproduce your exact steps on my own server on version 1.7.5 and it does not give the same errors, everything seems to work fine... |
I'll repeat, maybe the test procedure was confusing above:
I am getting this on both of my instances, however both are 1.8.1. |
done
done
done ( TXT files )
working without problems
unexpectedly working without problems, you can test yourself cloning with the two repos I linkes. IDK, maybe it's 1.7.5 that does not have this issue... |
It might be, I remember doing some testing of LFS in the late 1.7.x run before turning it on, now I'm trying to use it and it seems to be biting me. It could also be configuration, but I shared configurations with @lunny for him to review and we were both stumped. |
Are both instances newly created ones? |
I'm going to wait for someone to weigh in who is maintaining their test instance as I'd rather reproduce with the instance they are managing. I've already been able to reproduce this consistently on instances I deploy. |
Does the issue appears on https://try.gitea.io too? |
|
nope... |
Sorry, https://try.gitea.io didn't enable lfs. Could you try it on https://gitea.com ? |
AH... |
Haven't told you that's need an email confirmation. It's a real site not a try site. |
I figured that out by myself.... -.- |
I have deleted it. |
Thanks! |
Nope, bug not present here: https://gitea.com/bryanpedini_test_org/test_repo |
So that some PR fix that I think. Maybe @zeripath could answer and send a back port to v1.8.3 ? |
Yeah.. idk, on 1.9.0dev issue is not present... |
Did not say there weren't issues at all, I did say this particular one is not currently present on try.gitea.io and on gitea.com :P |
@bryanpedini #7082 should fix the last major one I know about - however fixing the problems the inverse of #732 has caused may need #7199 and some admin features. I'm afraid that if you have successfully merged from a fork with LFS changes you can currently lose LFS stored data if you then delete the fork and don't LFS push to the base repo from a separate checkout. |
@zeripath I don't actually know what LFS is 😅 |
I am unable to reproduce the same issue on gitea.com: My test sequence was:
then I was able to clone these repositories to another area on my client, and from a second client. So the version running on gitea.com may resolve this issue. I am now wondering it @bryanpedini wants to move his version to 1.8.1 to see if he can reproduce this issue there. Also @bryanpedini I'm not sure you're doing the same thing that I am doing (are you positive that lfs is uploading objects?), when you said your procedure was working on try.gitea.io earlier and LFS was disabled that is a pretty dire sign that you're testing is matching mine. |
Yes, same exact commands (except for
I didn't actually say that LFS was disabled on try.gitea.io ... @lunny did, in fact he gave me the suggestion to try the same things out on gitea.com ... I only tried the same steps over and over and over and over on my website on my account, on my website in an organization, on try.gitea.io in an org, and on gitea.com in an org, since your first problem seemed to be only with organizations' repositories...
That's actually for an entire different reason that I want to upgrade... (see #7218) |
@bryanpedini were you doing all these operations over ssh or http? I would surmise that http is working but ssh isn't due to some pre-auth stuff with JWT not happening. |
I suspect that this a duplicate of #5478 |
If its possible to backport fixes that would be great, I suspect it will be a little while before 1.9.x ships. |
* Always set userID on LFS authentication Fix go-gitea#5478 Fix go-gitea#7219 * Deploy keys should only be able to read their repos
Should be fixed by #7224 |
I've consumed 1.8.3 and now the above "test" works on both user and organizational repositories. |
[x]
):Description
I have two instances with identical configurations that I'm reproducing this on (just different domain names). Here is the order of things:
git lfs install
in repositorygit lfs track "*.jpg"
git add .
git commit
git push
pushing works, cloning on new client system (or another location on the same client system) works. Tested this with a couple client systems and this seems to be consistent.
Do the same thing, but as an organizational repository (instead of user), even as site administrator and as owner of the organization:
/info/lfs/objects/batch
endpointAgaint tested this with a couple client systems and this seems to be consistent.
So, from what I gather:
I have tried to reproduce this on the try.gitea.io instance but I can't seem to push (repository object not found?)
The text was updated successfully, but these errors were encountered: