Support URL redirects for Bitbucket repository Webhooks

XMLWordPrintable

      Issue Summary

      Currently Bitbucket repository Webhooks doesn't handle redirect requests.

      Eg: we have two services to handle webhook requests, w1 and w2. we configure w1 as Bitbucket webhook, if we setup w1 to redirect requests to w2 and if we send http 301 status from w1 to Bitbucket cloud, Bitbucket cloud in-return doesn't send the request to w2. 

      Steps to Reproduce

      1. Create two services to handle webhook requests, w1 and w2. we configure w1 as Bitbucket webhook

            2. We setup w1 to redirect requests to w2. when Bitbucket make request to w1, we send http 301 as response status code to Bitbucket cloud. bitbucket webhook not redirect requests to a new endpoint w2 when it receives a 301 status code.

       

      Expected Results

      bitbucket webhook should redirect requests to a new endpoint w2 when it receives a 301 status code.

      Actual Results

      The below is the webhook error:

      <html><head><title>301MovedPermanently</title></head><body><center><h1>301MovedPermanently</h1></center></body></html>
      

      Workaround

      The redirection should be currently handled at primary webhook service receiver.

            Assignee:
            Unassigned
            Reporter:
            Suhas Sundararaju
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: