-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Webhook silently fails when header contains colon #271
Comments
Thanks for reporting, will take a look. If you do not provide headers, will it work ( will it call the hooked backend server at all?) |
Hi sbaogang, Thanks again for the response - we made a local patch changing the keyValueSeperator on L70 to "=" (from ":") and it worked great. If you want, I'd be happy to provide a PR, though if you already have webhooks setup on your instances, it would run the risk of breaking them. |
the code in L70 does not like: do you have to use this syntax, any chance you could use |
The help/hint in UI is wrong, the splitter name value pair is : |
HTTP headers are in the form of name:value, so it is still prefered. We will change the one-line parse code to handle case such as "name: foo:bar", will have the code fix earlier next week. |
Hi Pinterest,
We're seeing webhooks fail when headers contain colons - we presume it's the line here:
teletraan/deploy-service/common/src/main/java/com/pinterest/deployservice/handler/WebhookJob.java
Line 70 in a4201f2
Are the headers supposed to be kv pairs split with colons (as the code suggests), or equals signs (as the docs/tooltips) suggest?
An example header string that repros the behavior:
Accept=application/json;Content-Type=application/json;Authorization=tok:747703
Log output:
There is no other entries in the log, so I presume that it is silently failing somewhere between L66 and L78.
The text was updated successfully, but these errors were encountered: