mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-12 02:24:21 -05:00
LFS Inconsitency with Authentication on Gitea <1.9 #3477
Closed
opened 2025-11-02 05:14:06 -06:00 by GiteaMirror
·
30 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16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3
v1.4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#3477
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andrewgdunn on GitHub (Jun 16, 2019).
[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 installin repositorygit lfs track "*.jpg"git add .git commitgit pushpushing 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/batchendpointAgaint 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?)
@andrewgdunn commented on GitHub (Jun 16, 2019):
@lunny this is what you and I were talking about earlier.
@bryanpedini commented on GitHub (Jun 16, 2019):
@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...
Test repos can be found at https://git.bryanpedini.it/bryanpedini/test and https://git.bryanpedini.it/School/test.
@andrewgdunn commented on GitHub (Jun 16, 2019):
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.
@bryanpedini commented on GitHub (Jun 16, 2019):
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...
@andrewgdunn commented on GitHub (Jun 16, 2019):
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.
@bryanpedini commented on GitHub (Jun 16, 2019):
Are both instances newly created ones?
Maybe try to recreate the issue with a quick test env installation from the gitea/gitea Docker Hub image or a quick VM with CentOS (lightweight enough) or Debian (also light) if you feel more comfortable with apt instead...
@andrewgdunn commented on GitHub (Jun 16, 2019):
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.
@bryanpedini commented on GitHub (Jun 16, 2019):
Does the issue appears on https://try.gitea.io too?
@andrewgdunn commented on GitHub (Jun 16, 2019):
@bryanpedini commented on GitHub (Jun 16, 2019):
nope...
https://try.gitea.io/johifsdgjikhfsdjihfsaehjisdf_test_org/test - seems to be working... now IDRK...
(did the exact same steps you described), (cloning works too)
@lunny commented on GitHub (Jun 16, 2019):
Sorry, https://try.gitea.io didn't enable lfs. Could you try it on https://gitea.com ?
@bryanpedini commented on GitHub (Jun 16, 2019):
AH...
okay... trying it now...
(perfect..... I registered an account with a fake email address and now have to wait 3 hours to registration to timeout to reuse the same username..... I'm a genius.....)
@lunny commented on GitHub (Jun 16, 2019):
Haven't told you that's need an email confirmation. It's a real site not a try site.
@bryanpedini commented on GitHub (Jun 16, 2019):
I figured that out by myself.... -.-
Could you delete instances for username "bryanpedini" on DB or resend a confirmation email at bryanpedini@bryanpedini.it please? (if you are maintainer there)?
@lunny commented on GitHub (Jun 16, 2019):
I have deleted it.
@bryanpedini commented on GitHub (Jun 16, 2019):
Thanks!
Trying the bug now.
@bryanpedini commented on GitHub (Jun 16, 2019):
Nope, bug not present here: https://gitea.com/bryanpedini_test_org/test_repo
Can push without problems,
Can re clone without problems...
@lunny commented on GitHub (Jun 16, 2019):
So that some PR fix that I think. Maybe @zeripath could answer and send a back port to v1.8.3 ?
@bryanpedini commented on GitHub (Jun 16, 2019):
Yeah.. idk, on 1.9.0dev issue is not present...
@lunny commented on GitHub (Jun 16, 2019):
someone of https://github.com/go-gitea/gitea/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aclosed+milestone%3A1.9.0+lfs
@bryanpedini commented on GitHub (Jun 16, 2019):
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
@zeripath commented on GitHub (Jun 16, 2019):
@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.
@bryanpedini commented on GitHub (Jun 16, 2019):
@zeripath I don't actually know what LFS is 😅
I was just the betatester man for the issue the OP has brought out...
@andrewgdunn commented on GitHub (Jun 16, 2019):
I am unable to reproduce the same issue on gitea.com:
My test sequence was:
git lfs installgit lfs track "*.jpg"git add .git lfs ls-files(confirm lfs is tracking these three images)git commitgit pushthen 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.
@bryanpedini commented on GitHub (Jun 16, 2019):
Yes, same exact commands (except for
git lfs ls-files) which, if there are three files in the repository after pushing, I expect that to be working. Tell me if I'm wrong here.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)
@andrewgdunn commented on GitHub (Jun 16, 2019):
@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.
@zeripath commented on GitHub (Jun 16, 2019):
I suspect that this a duplicate of #5478
@andrewgdunn commented on GitHub (Jun 16, 2019):
If its possible to backport fixes that would be great, I suspect it will be a little while before 1.9.x ships.
@zeripath commented on GitHub (Jun 18, 2019):
Should be fixed by #7224
@andrewgdunn commented on GitHub (Jun 18, 2019):
I've consumed 1.8.3 and now the above "test" works on both user and organizational repositories.