git lfs mirror download request maybe shouldn't carry Accept #13074

Closed
opened 2025-11-02 10:29:29 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Zoupers on GitHub (May 30, 2024).

Description

My situation is as follows: I use Gitea to mirror a repository on Bitbucket. Then, I found that the content stored using LFS (Large File Storage) was not correctly synchronized. So, I opened the trace logs to check. The batch operation was normal, but when it came to the download operation, the first server directly returned a 500 error, and no response body was returned. Therefore, I tried to understand what was happening from the source code and found that the request header for the download operation would additionally include an Accept field. When I removed it, the download worked properly...

Followed by the official doc, it seems there is no need to download with Accept header, maybe we can remove it from download?

I don't have the permission to the bitbucket server, so I don't know what happend in the bitbucket background.

Gitea Version

v1.22.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

linux

How are you running Gitea?

run from docker

Database

None

Originally created by @Zoupers on GitHub (May 30, 2024). ### Description My situation is as follows: I use Gitea to mirror a repository on Bitbucket. Then, I found that the content stored using LFS (Large File Storage) was not correctly synchronized. So, I opened the trace logs to check. The batch operation was normal, but when it came to the download operation, the first server directly returned a 500 error, and no response body was returned. Therefore, I tried to understand what was happening from the source code and found that the request header for the download operation would additionally include an Accept field. When I removed it, the download worked properly... Followed by the official [doc](https://github.com/git-lfs/git-lfs/blob/main/docs/api/basic-transfers.md), it seems there is no need to download with `Accept` header, maybe we can remove it from download? I don't have the permission to the bitbucket server, so I don't know what happend in the bitbucket background. ### Gitea Version v1.22.0 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System linux ### How are you running Gitea? run from docker ### Database None
GiteaMirror added the topic/lfstype/bug labels 2025-11-02 10:29:29 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13074