-
Notifications
You must be signed in to change notification settings - Fork 350
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
Pipe using simple language expressions causing failure #4777
Comments
I think this is due to #4618 - we need to let Camel framework to manage Kamelets OOTB, with its internal mechanism of replacements, loading, etc... while working on that one, we can make sure also this issue is addressed. |
Out of curiosity, heve you tried something like |
Not a bug. This is a side effect of the need to provide a placeholder in the route which will be later resolved with a configuration property. We should understand the mechanism replacement adopted by JBang and try to mimick it if that is feasible. |
@squakez how could this not be a bug? Anyway, as you said, we need to see how JBang runtime does it and fix/add support for this simple language expressions when using Pipes in Camel K |
This issue has been automatically marked as stale due to 90 days of inactivity. |
What happened?
When a Pipe uses a simple language expression (e.g.
${header[foo]}
) to set a property value on a Kamelet (e.g. on insert-header-action Kamelet) the Pipe fails because of property resolving errors.Many Kamelets do support simple language expressions and this includes
insert-header-action
Kamelet but the simple language syntax${...}
causes problems in property resolving mechanism on Camel K.In general user defined properties on Kamelets are handled as
user.properties
on the Integration and the${...}
simple language expression syntax collides with the general property resolving syntax.This issue is only when running Pipes with Camel K. Camel JBang does not report these errors.
The workaround for this is to use
$simple{...}
expression syntax in Pipes when using Camel K.Steps to reproduce
Use something like this in Pipe:
This workaround works as expected:
Relevant log output
The text was updated successfully, but these errors were encountered: