Details
-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
5.4.1
-
None
-
1
-
Severity 3 - Minor
-
Description
Summary
Bitbucket Data Center does not send the web-hook to the Bitbucket Mirror when proxy bypass is enabled. This causes the Bitbucket Mirror to be updated every 15 min not instantaneously. Once this setting is cleared, Bitbucket Data Center sends the web hook to the Bitbucket Mirror. There is a INFO log generated by c.a.w.i.p.DefaultWebhookDispatcher on Bitbucket Data Center.
-Dhttp.nonProxyHosts=""*.<your domain>.com|localhost""
Steps to Reproduce
- Set up Bitbucket Data Center on a network that only needs a proxy to access the internet. Configure to use -Dhttp.nonProxyHosts= for the network.
- Confirm Bitbucket Data Center has access to the Marketplace.
- Set up a Bitbucket Mirror.
- Push a commit to a repository that the Bitbucket Mirror is mirroring.
- The Bitbucket Mirror will in ~ 15 min pull the change from Bitbucket Data Center.
- Remove the proxy setting from the Bitbucket Data Center instance and restart.
- Repeat push. Note that the Access Logs on the Bitbucket Mirror show the incoming web hook and the repository is synced immediately.
Expected Results
Bitbucket Data Center will make an outbound web hook connection to the Bitbucket Mirror. This will be logged in the Bitbucket Mirror access logs as an incoming connection.
Actual Results
c.a.w.i.p.DefaultWebhookDispatcher will log the following:
111-11-11 11:11:11,111 INFO [ForkJoinPool.commonPool-worker-*] c.a.w.i.p.DefaultWebhookDispatcher Webhook invocation [...] failed with an error
The Bitbucket Mirror will revert to the 15 pull timer to pull updates.
Workaround
Remove proxy settings from Bitbucket Data Center.
Attachments
Issue Links
- duplicates
-
BSERV-10441 Webhooks ignore HTTP(s) non proxy host settings
- Closed