[BUG] LFS Render displays as text #6809

Closed
opened 2025-11-02 07:07:12 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @kdumontnu on GitHub (Feb 4, 2021).

  • Gitea version (or commit ref): 1.14.0+dev-658-g3c965c3e
  • Git version:
  • Operating system: Windows, Linux + Docker
    See this issue deployed in linux + docker and recreated it locally on windows running form binary
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (is LFS disabled for try.gitea.io?)
  • Log gist: https://gist.github.com/kdumontnu/ab0d8635f71dc02d4611b00e0139e92a

Description

When viewing an LFS file in gitea, the view now shows as text instead of the file (see a jpg below). Presumably the mimetest function is getting the pointer file instead of the actual LFS file.

Screenshots

image

Originally created by @kdumontnu on GitHub (Feb 4, 2021). - Gitea version (or commit ref): 1.14.0+dev-658-g3c965c3e - Git version: - Operating system: Windows, Linux + Docker See this issue deployed in linux + docker and recreated it locally on windows running form binary - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No (is LFS disabled for try.gitea.io?) - Log gist: https://gist.github.com/kdumontnu/ab0d8635f71dc02d4611b00e0139e92a ## Description When viewing an LFS file in gitea, the view now shows as text instead of the file (see a jpg below). Presumably the mimetest function is getting the pointer file instead of the actual LFS file. ## Screenshots ![image](https://user-images.githubusercontent.com/12700993/106858411-dc211480-667e-11eb-97f5-b9afa6f69b7e.png)
GiteaMirror added the skip-changelogtype/bug labels 2025-11-02 07:07:12 -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#6809