Closed
Description
- Gitea version (or commit ref): 1.11.3
- Git version: 2.11.0
- Operating system: 9.12
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
The API to download a zip/tgz archive does not cleanup the archive made in the case of an error. So while a 500 will result from the first attempt, all subsequent attempts on the same commit ID will get the corrupted file from the disk and a 200 OK. This is not addressed in master (b7c82cd1a9) either.
Reproducing this is a requires making the git archive
command fail. In my case this was from a timeout.
Screenshots
No UI elements involved.