Closed
Description
Description
See here:
attach, err := repo_model.GetAttachmentByID(ctx, attachID)
if err != nil {
ctx.Error(http.StatusInternalServerError, "GetAttachmentByID", err)
return
}
It should return 404 when attachID is not found instead.
Gitea Version
dev
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
a
Screenshots
a
Git Version
a
Operating System
a
How are you running Gitea?
a
Database
SQLite