Skip to content

API endpoint /repos/{owner}/{repo}/raw/{filepath}?branch returns 404 in version 1.23.0 #33292

@snogales

Description

@snogales

Description

In version 1.22.6, I was able to download a file using the API endpoints:

  • /repos/{owner}/{repo}/raw/{filepath}?branch
  • /repos/{owner}/{repo}/raw/{filepath}

However, in version 1.23.0, while the endpoint /repos/{owner}/{repo}/raw/{filepath} still works, the endpoint /repos/{owner}/{repo}/raw/{filepath}?branch returns a 404 error, even though the branch exists.

Gitea Version

1.23.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

downloads (the bug happens in https://demo.gitea.com/ too)
systemd (RHEL8)

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtopic/apiConcerns mainly the APItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions