go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.21k stars 5.42k forks source link

External lfs server handling is inconsistent #31846

Open tionis opened 1 month ago

tionis commented 1 month ago

Description

I added an external lfs server to my repo and then added gitea as secondary remote and pushed to it via git push gitea. Gitea throws an error in the UI when LFS objects are accessed: getFileReader, LFS Meta object does not exist, even though the data in .lfsconfig should be enough to access them. The lfs settings panel shows no lfs objects in the repo (as expected) but if I click on Find Pointer Files the objects are marked as "Exists in store"

I reproduced it on gitea.com here: https://gitea.com/tionis/external-lfs-server-bug

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker-compose

Database

None

lunny commented 3 weeks ago

Can you create a example repository in Github so that we can know how Github handle it?

tionis commented 2 weeks ago

GitHub also has issues with such repos: https://github.com/tionis/external-lfs-server-demo In another private repo, I also had PDF's that were loading for quite a while in the preview page until ending in an error message.

tionis commented 2 weeks ago

I also tried to push a demo repo to gitlab but it flat out refused to accept my push due to missing lfs files and I can't seem to find a way to disable this pre-receive hook