Closed
Description
Description
When trying to create a release from a tag, I get the error message "form.Target cannot be empty."
How to reproduce:
- open a repository
- click on "tags"
- click on "New Release" on a tag (this opens the new release form prefilled with the commit info from that tag)
- click "Publish Release"
- Form reload with the error message
form.Target cannot be empty.
There is not much to extract from logs. Server logs are absolutely nominal with one request per line, no error or warning. The specific call that returns the error ends up on a 200:
gitea | 2025/06/19 15:01:22 HTTPRequest [I] router: completed POST <redacted path>/releases/new for <redacted IP>:0, 200 OK in 21.8ms @ repo/release.go:395(repo.NewReleasePost)
No error either in the JavaScript console.
This happens on my instance (1.24.0) and also on the current public test instance (1.25.0+dev-150-g037f72bdb3)
Gitea Version
1.24.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Our instance is a docker container based on gitea/gitea:latest
, but this issue happens on the demo instance too.
Database
PostgreSQL