Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13988

WebHook returns different response code as was set

    XMLWordPrintable

Details

    Description

      In some cases (for some status code), the webhook returns different status code as which was set.

      I created simple integration Webhook->InvokeSQL for every return code.
      For return 2xx codes, I used `INSERT INTO todo (task) VALUES ('test')` query in the invoke SQL step.
      For 4xx and 5xx codes, I used `INSERT INTO contact (create_date) VALUES ('Red Hat')` query in the invoke SQL step.

      After that, I published all integrations and invoked the webhooks.

      Return code defined in WebHook What webhook returns  
      200 204
      201 204
      202 204
      204 204
      400 200
      404 404
      405 405
      409 409
      500 500
      501 501
      503 503

      Attachments

        Activity

          People

            kstam@redhat.com Kurt Stam (Inactive)
            mkralik@redhat.com Matej Kralik
            Matej Kralik Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: