Skip to content

Search paths is not woking if use-legacy-processing sets to true in config repo #2333

Closed
@zacscoding

Description

@zacscoding

Describe the bug
If our config repo has spring.config.use-legacy-processing=true in application.yml and use search paths in config server,
Then returns empty environments becase of ; delimiter at NativeEnvironmentRepository which updated from #1904.

If this is within the provided specification, please close the issue :) thx!

Sample

  • Config Repo
tree ./
./
├── app
│   └── application.yml
└── data
    └── db.yml

app/application.yml

...
spring:
  config:
    use-legacy-processing: true
...
  • Config Server

application.yml

spring:
  cloud:
    config:
      server:
        git:
          uri: file://${user.home}/myrepo
          search-paths:
            - app
            - data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions