Closed forrestab closed 5 years ago
Thank you for reporting this issue. @dougbu, can you please look into this? Thanks!
@forrestab we've moved this issue is in the Backlog milestone. This means that it is not going to happen for the coming release.
Have also marked this issue as up-for-grabs. This means we will review a PR filling this gap if someone submits one.
By "this gap" I mean interoperability with Bitbucket Server, not just a new option to disable the X-Hook-UUID
requirement. We do not have a Bitbucket Server instance to test against. Nor do we have any confidence the missing X-Hook-UUID
header is the only Bitbucket Cloud / Server difference.
This issue was moved to aspnet/AspLabs#44
Functional impact
Because the
X-Hook-UUID
does not exist in webhook requests from Bitbucket Server, the error "A 'bitbucket' WebHook request must contain a 'X-Hook-UUID' HTTP header." is thrown and the webhook handler is never executed.Minimal repro steps
pr:opened
)If it helps here is the code I am using as the receiver, https://github.com/forrestab/bitbucket-server-webhooks.
Expected result
Expected the handler to be called with the correct hook data.
Actual result
Exception is thrown and the handler is never called.
Further technical details
I don't understand the reasoning, but webhook requests from Bitbucket Server contain slightly different headers than Bitbucket Cloud.
Also, based on the HTTP headers listed for Bitbucket Server, there does not appear to be a matching
X-Hook-UUID
. Would it be possible to disable this check?