Skip to content

LFS Inconsitency with Authentication on Gitea <1.9 #7219

Closed
@andrewgdunn

Description

@andrewgdunn
  • Gitea version (or commit ref): 1.8.1
  • Git version: 2.20.1
  • Operating system: debian buster
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I have two instances with identical configurations that I'm reproducing this on (just different domain names). Here is the order of things:

  • create a repository under your user account
  • clone repository
  • git lfs install in repository
  • git lfs track "*.jpg"
  • copy in a couple images
  • 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:

  • push seems to work
  • clone causes a 401 authentication issue on the /info/lfs/objects/batch endpoint

Againt tested this with a couple client systems and this seems to be consistent.

So, from what I gather:

  • LFS seems to work well if it is a repository that is created under your own user account
  • LFS does not work when it is a repository that is created under an organization

I have tried to reproduce this on the try.gitea.io instance but I can't seem to push (repository object not found?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions