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 IT failing on Fedora + Bash due to environment variables containing bash scripts with variables #1130

Closed
gsmet opened this issue Mar 1, 2019 · 0 comments
Milestone

Comments

@gsmet
Copy link
Member

gsmet commented Mar 1, 2019

On Fedora + Bash, the Camel IT tests are failing with this error:

Caused by: java.util.NoSuchElementException: Property IFS+x not found
	at io.smallrye.config.SmallRyeConfig.getValue(SmallRyeConfig.java:89)
	at io.quarkus.runtime.configuration.ConfigExpander.accept(ConfigExpander.java:55)
	at io.quarkus.runtime.configuration.ConfigExpander.accept(ConfigExpander.java:15)
	at org.wildfly.common.expression.ExpressionNode.emit(ExpressionNode.java:42)
	at org.wildfly.common.expression.CompositeNode.emit(CompositeNode.java:42)
	at org.wildfly.common.expression.Expression.evaluateException(Expression.java:75)
	at org.wildfly.common.expression.Expression.evaluate(Expression.java:89)
	at io.quarkus.runtime.configuration.ExpandingConfigSource.expand(ExpandingConfigSource.java:46)
	at io.quarkus.runtime.configuration.ExpandingConfigSource.getValue(ExpandingConfigSource.java:38)
	at io.smallrye.config.SmallRyeConfig.getValue(SmallRyeConfig.java:74)
	at io.quarkus.camel.core.deployment.CamelIntiProcessor.createInitiTask(CamelIntiProcessor.java:61)

This is due to the BASH_FUNC_* environment properties containing things like that:

if [ -n "${IFS+x}" ]; then

as MP Config tries to expand the variable and fail.

What makes the Camel ITs specific is that they iterate over all the configuration properties to push them to Camel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants