Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

AWS Parameter Store with Hoxton SR8+ doesn't override properties when using multiple profiles #772

Open
@peteguyatt

Description

@peteguyatt

Type: Bug

Component:

Parameter Store

Describe the bug
When using multiple active profiles with spring cloud Hoxton SR10 and boot 2.3.9 we have noticed that property order seems to have changed, for example if we have two properties set E.g.

spring.profiles.active=profile_a,profile_b

Parameter Store configured as:

application/profile_a/app.secret-key: abc-123
application/profile_b/app.secret-key: efd-213

and in our bean we have

@Value("${app.secret-key}")
private String secretKey; 

the value resolved will be abc-123 instead of efd-213

I looked through the commit history for AwsParamStorePropertySourceLocator and the issue seems to have been introduced in 582fdc6 where the Collections.reverse has been removed due to switching to using a LinkedHashSet

This looks like an accidental bug to me and the same bug exists in master and the 2.3.x branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions