Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1208

deltaspike configuration: Variable Replacement in Configured Values is NOT fully stage aware

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2
    • Configuration
    • None

    Description

      using the following apache-deltaspike.properties

      some-service-url=${edge-server-url}/some-service
      edge-server-url=undefined
      edge-server-url.Development=http://development:8081
      edge-server-url.Staging=http://staging:8081
      edge-server-url.Production=http://prod:8081
      

      and executing the following code:

      System.out.println("some-service-url="+ConfigResolver.getProjectStageAwarePropertyValue("some-service-url"));
      

      having the following java VM arg set:

      -Dorg.apache.deltaspike.ProjectStage=Staging
      

      should result in the output:
      some-service-url=http://staging:8081/some-service

      I have already contributed a bug fix for DELTASPIKE-1167 - unfortunately that didn't fully solve the issue.
      I plan to provide a fix for this soon. [UPDATE] patch added

      Attachments

        1. DELTASPIKE-1208.patch
          5 kB
          Valentin Maechler

        Issue Links

          Activity

            People

              johndament John D. Ament
              vmach Valentin Maechler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: