1.9.0 breaks gogs web hooks #3704

Closed
opened 2025-11-02 05:22:20 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @UziTech on GitHub (Jul 31, 2019).

  • Gitea version (or commit ref): 1.9.0
  • Git version: 2.22.0.windows.1
  • Operating system: Windows
  • 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

v1.9.0 changes the default web hook to use application/json so any existing Gogs web hook which was setup to receive application/x-www-form-urlencoded data will break because there is no place to change it in a Gogs web hook.

This is more of an FYI for anyone looking for a fix.

I fixed it by creating a Gitea web hook with the POST Content Type set to application/x-www-form-urlencoded

Originally created by @UziTech on GitHub (Jul 31, 2019). - Gitea version (or commit ref): 1.9.0 - Git version: 2.22.0.windows.1 - Operating system: Windows - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description v1.9.0 changes the default web hook to use `application/json` so any existing Gogs web hook which was setup to receive `application/x-www-form-urlencoded` data will break because there is no place to change it in a Gogs web hook. This is more of an FYI for anyone looking for a fix. I fixed it by creating a Gitea web hook with the `POST Content Type` set to `application/x-www-form-urlencoded`
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 05:22:20 -06:00
Author
Owner

@lunny commented on GitHub (Aug 1, 2019):

It seems it's a breaking change I haven't noticed.

@lunny commented on GitHub (Aug 1, 2019): It seems it's a breaking change I haven't noticed.
Author
Owner

@stale[bot] commented on GitHub (Sep 30, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Sep 30, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@6543 commented on GitHub (Oct 6, 2019):

@aamsur this: https://github.com/go-gitea/gitea/pull/8402 should close this issue?

@6543 commented on GitHub (Oct 6, 2019): @aamsur this: https://github.com/go-gitea/gitea/pull/8402 should close this issue?
Author
Owner

@lunny commented on GitHub (Oct 7, 2019):

I think yes.

@lunny commented on GitHub (Oct 7, 2019): I think yes.
Author
Owner

@aamsur-mkt commented on GitHub (Oct 7, 2019):

@6543 yes, thanks @lunny

@aamsur-mkt commented on GitHub (Oct 7, 2019): @6543 yes, thanks @lunny
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3704