Skip to content

Commit f91c9ff

Browse files
committed
Merge branch '4.1.x'
2 parents e219f8e + cdd77f2 commit f91c9ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/ClientAuthenticationFactory.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.nio.file.Files;
2121
import java.nio.file.Path;
2222
import java.nio.file.Paths;
23+
import java.util.Locale;
2324
import java.util.concurrent.atomic.AtomicReference;
2425

2526
import software.amazon.awssdk.auth.credentials.AwsCredentials;
@@ -175,7 +176,7 @@ private AppIdUserIdMechanism getAppIdMechanism(VaultProperties.AppIdProperties a
175176
}
176177
catch (ClassNotFoundException ex) {
177178

178-
switch (appId.getUserId().toUpperCase()) {
179+
switch (appId.getUserId().toUpperCase(Locale.ROOT)) {
179180

180181
case VaultProperties.AppIdProperties.IP_ADDRESS:
181182
return new IpAddressUserId();

0 commit comments

Comments
 (0)