Skip to content

Conversation

willemvd
Copy link
Contributor

when in Gogs > 0.10.x the secret is not set, the X-Gogs-Signature is empty. So only do an optional check if it exists in the body to prevent an Exception ( javax.servlet.ServletException: net.sf.json.JSONException: JSONObject["secret"] not found. ) when not found in the body
This is to fix #18

…y, so only do an optional check if it exists in the body
@sanderv32
Copy link
Contributor

Hi Willem.. Is this PR still relevant?

@slPerryRhodan
Copy link

Hello,

And yes for me/us this is still relevant. Because, we don't use a password for our Webhooks in dev environment.

@sanderv32 sanderv32 closed this Apr 10, 2017
@sanderv32 sanderv32 reopened this Apr 10, 2017
@sanderv32 sanderv32 merged commit 0a3b40e into jenkinsci:master Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webhook doesn't work without a password/secret
3 participants