Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12352

simple - Lookup env var should be case-insensitive

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.5, 2.20.3, 2.21.1, 2.22.0
    • camel-core
    • None
    • Novice

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment