Skip to content

LFS mirroring support for legacy batch _links responses #31512

Closed
@rremer

Description

@rremer

Feature Description

There are LFS server implementations in the wild which have batch API responses in an older/deprecated schema. Recent versions of Jfrog Artifactory, as well as Microsoft TFS cannot have their LFS objects mirrored into Gitea because they serve a batch API and the 'download' action in responses is not honored because it's under the field _links instead of actions.

The most recent version of git-lfs still supports this 'deprecated' field: https://github.com/git-lfs/git-lfs/blob/main/tq/transfer.go#L56 , so a git lfs pull would work from one of the servers above using the native client, but not with Gitea.

I believe Gitea should support both fields to keep parity with native git-lfs clients until such time as they deprecate it (forcing servers like Artifactory to update their responses).

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions