No system webhook triggered for repository migration #6525

Closed
opened 2025-11-02 06:58:33 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @kasbah on GitHub (Dec 15, 2020).

  • Gitea version (or commit ref): 980b0df829
  • 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 https://github.com/go-gitea/gitea/pull/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/) ...

image

  • 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.
Originally created by @kasbah on GitHub (Dec 15, 2020). - Gitea version (or commit ref): 980b0df8296cdec3692482c3efdbfa68036a1114 - Git version: - Operating system: <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No (*need admin access*) - Log gist: ## Description System webhooks (added with https://github.com/go-gitea/gitea/pull/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 ![image](https://user-images.githubusercontent.com/206854/102227371-651e9980-3ee1-11eb-908b-e06616876f4c.png) - 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.
GiteaMirror added the type/proposal label 2025-11-02 06:58:33 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6525