Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webhook): support failure handling strategy #2787

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

chillleader
Copy link
Member

Description

This PR will fix the failure handling strategy selection in the webhook REST controller.

  • When the handling strategy is ForwardToUpstream, error should be returned (422)
  • When it is Ignore, 200 response should be returned
  • The response body in case of an error should contain the message (added as @JsonProperty) and should not contain consumeUnmatched (internal field, excluded with annotation)

Related issues

#2596

@chillleader chillleader self-assigned this Jun 24, 2024
@chillleader chillleader requested a review from a team as a code owner June 24, 2024 13:29
@chillleader chillleader added this pull request to the merge queue Jun 24, 2024
Merged via the queue into main with commit aa7e844 Jun 24, 2024
4 checks passed
@chillleader chillleader deleted the fix-wh-support-failure-handling-strategy branch June 24, 2024 14:23
github-actions bot pushed a commit that referenced this pull request Jun 24, 2024
* fix(webhook): support failure handling strategy

* clean up

(cherry picked from commit aa7e844)
Copy link
Contributor

Successfully created backport PR for release/8.6:

johnBgood pushed a commit that referenced this pull request Jun 24, 2024
* fix(webhook): support failure handling strategy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants