Closed
Description
- Gitea version (or commit ref): 980b0df
- Git version:
- Operating system:
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No (need admin access)
- Log gist:
Description
System webhooks (added with #10546) trigger when you create a new repository but not when you migrate a repository.
Steps to reproduce
- Compile and run a local Gitea
- Start a web server that will log webhook attempts, e.g.
$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
- Go to http://localhost:3000/admin/system-hooks and add a system webhook, for all events
- Add a new repository, see that the web server logs them (the 501 error is expected)
127.0.0.1 - - [15/Dec/2020 14:30:05] code 501, message Unsupported method ('POST')
127.0.0.1 - - [15/Dec/2020 14:30:05] "POST / HTTP/1.1" 501 -
- Migrate a repository and observe that no request is sent and nothing is logged on the webserver.