Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-2808

Setting active profiles drops contiainer/admin profile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1 GA
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None
    • Story Points:
      1
    • Rank (Obsolete):
      9223372036854775807
    • Acceptance Criteria:
      Hide

      Be able to set active profiles from environment variables without loosing the container or admin properties.

      Show
      Be able to set active profiles from environment variables without loosing the container or admin properties.

      Description

      When setting an active property via SPRING_PROFILES_ACTIVE environment variable the profile set ContainerServerApplication or AdminServerApplication is ignored.

      ConfigFileApplicationListener in spring boot has an if else in the load method which skips adding the additional properties added to the StandardEnvironment if the environment variable exists.

      This could be a bug for Spring Boot, but I wasn't sure if the mutual exclusion was intentional. Additionally it would be nice to know when this feature is included in spring xd if it is a spring boot bug.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jahubba Jason Hubbard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: