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

CAMEL-17751: Extracting Camel-Saga-Compensate & Camel-Saga-Complete f… #7118

Merged
merged 2 commits into from Mar 6, 2022

Conversation

vagpap
Copy link
Contributor

@vagpap vagpap commented Mar 5, 2022

If the verifyRequest method is not able to retrieve:

Camel-Saga-Compensate & Camel-Saga-Complete

as individual headers, try to extract them from the CamelHttpQuery header.
If found, add them also as headers to the exchange.getIn since if they are not there, neither the compensation or the completion is called correctly.

…rom CamelHttpQuery header if not present as individual headers
Copy link
Contributor

@davsclaus davsclaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use URISupport from camel camel-util which has APIs to extract http headers

@vagpap vagpap requested a review from davsclaus March 6, 2022 15:21
@vagpap
Copy link
Contributor Author

vagpap commented Mar 6, 2022

The code currently throws a RuntimeCamelException in case the URISupport.parseQuery method throws the URISyntaxException.

Is this appropriate? Should it throw something else?

Copy link
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, we need to backport on main too

@vagpap
Copy link
Contributor Author

vagpap commented Mar 6, 2022

@oscerd should I do it and then open a new PR for main?

@davsclaus
Copy link
Contributor

I think we can cherry pick to main so lets try this first

@davsclaus davsclaus merged commit 19effd6 into apache:camel-3.14.x Mar 6, 2022
davsclaus pushed a commit that referenced this pull request Mar 6, 2022
#7118)

* CAMEL-17751: Extracting Camel-Saga-Compensate & Camel-Saga-Complete from CamelHttpQuery header if not present as individual headers

* CAMEL-17751: Comments addressing - Usage of URISupport.parseQuery for extraction of query params into a Map

Co-authored-by: Vangelis Papanastasatos <papanastasatose@unisystems.gr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants