You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Önder Sezgin (JIRA)" <ji...@apache.org> on 2018/03/16 07:45:00 UTC
[jira] [Resolved] (CAMEL-12352) simple - Lookup env var should be
case-insensitive
[ https://issues.apache.org/jira/browse/CAMEL-12352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Önder Sezgin resolved CAMEL-12352.
----------------------------------
Resolution: Fixed
> 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)