Skip to content

Error 500 when trying to open a new PR with an empty CSV file #17224

Closed
@noiaverbale

Description

@noiaverbale

Gitea Version

1.15.3

Git Version

2.30.2

Operating System

Docker

How are you running Gitea?

Docker, image gitea/gitea:1.15.3

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/noiaverbale/4c3b1706e54f581c32eb3790fa7f7373

Description

When I click "New Pull Request" button from a branch where an empty csv file has been added to, an error 500 appears.

To reproduce it you just need to:

  1. checkout a new branch
  2. add, commit and push empty file with csv extension
  3. open new PR or compare with parent branch

URLs

Screenshots

SharedScreenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions