Skip to content

[BUG] LFS Render displays as text #14565

Closed
@kdumontnu

Description

@kdumontnu
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.type/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions