webhook compare_url is not filled in #3107

Open
opened 2025-11-02 05:00:59 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @luvarqpp on GitHub (Mar 27, 2019).

Description

Short: In POST request there is field "compare_url", which is not filled in.
parsing "compare_url"

Long desc

I have installed gitea server together with jenkins instance and I have installed gitea plugin for jenkins. Than I have set-up single jenkins job (gitea organization). It have found some repositories and created multibranch job for them. Also webhooks in gitea was set-up by jenkins plugin automatically (as it was requested in jenkins plugin settings).

Disclaimer: I have not studied gitea jenkins plugin deeply, I have just done some basic "grep" for some keywords.

It seems that webhooks are working and I see that delivery was successful (http 200 response with body: "Processed"). There is no trigerred jenkins builds through. I have find out that jenkins plugin is parsing "compare_url" from data. Given attribute is set to be empty string, so I think that this is root of my problem.

Another source code is suggesting that match is done using html url.

Originally created by @luvarqpp on GitHub (Mar 27, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.7.4 - Git version: 2.16.5 - Operating system: Centos 7 - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes (provide example URL): https://try.gitea.io/lubomir.varga/pushtest/settings/hooks/181 - [ ] No - [ ] Not relevant - Log gist: ## Description Short: In POST request there is field "compare_url", which is not filled in. parsing "compare_url" ### Long desc I have installed gitea server together with jenkins instance and I have installed gitea plugin for jenkins. Than I have set-up single jenkins job (gitea organization). It have found some repositories and created multibranch job for them. Also webhooks in gitea was set-up by jenkins plugin automatically (as it was requested in jenkins plugin settings). Disclaimer: I have not studied gitea jenkins plugin deeply, I have just done some basic "grep" for some keywords. It seems that webhooks are working and I see that delivery was successful (http 200 response with body: "Processed"). There is no trigerred jenkins builds through. I have find out that jenkins plugin is [parsing "compare_url"](https://github.com/jenkinsci/gitea-plugin/blob/master/src/main/java/org/jenkinsci/plugin/gitea/client/api/GiteaPushEvent.java#L90) from data. Given attribute is set to be empty string, so I think that this is root of my problem. Another source code is suggesting that [match is done using html url](https://github.com/jenkinsci/gitea-plugin/blob/master/src/main/java/org/jenkinsci/plugin/gitea/GiteaPushSCMEvent.java#L134).
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 05:00:59 -06:00
Author
Owner

@stale[bot] commented on GitHub (May 26, 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 (May 26, 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3107