[
https://issues.apache.org/jira/browse/CAMEL-12352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16400297#comment-16400297
]
ASF GitHub Bot commented on CAMEL-12352:
----------------------------------------
GitHub user onderson opened a pull request:
https://github.com/apache/camel/pull/2255
CAMEL-12352 - make system property uppercase if given lowercase in si…
…mple expression
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/onderson/camel CAMEL-12352
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2255.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2255
----
commit 7aecdf0f80271c547db7b23d96e56c219e342be5
Author: Sezgin <onder.sezgin@...>
Date: 2018-03-15T11:26:23Z
CAMEL-12352 - make system property uppercase if given lowercase in simple
expression
----
> simple - Lookup env var should be case-insensitive
> --------------------------------------------------
>
> Key: CAMEL-12352
> URL: https://issues.apache.org/jira/browse/CAMEL-12352
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 2.22.0
>
>
> We should upper-case env var text before looking it up in System.getenv as
> ENV vars are upper-case.
> Today you have to do
> .setBody().simple("${sysenv.FALLBACK}")
> But you may type
> .setBody().simple("${sysenv.fallback}")
> To lookup an ENV with key FALLBACK
>
> This can be implemented in the
> org.apache.camel.builder.ExpressionBuilder#systemEnvironmentExpression(java.lang.String,
> java.lang.String)
> Contributions is welcome
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)