From 03259f6f414425c1c0b396eb31f0f4b17f93b424 Mon Sep 17 00:00:00 2001 From: rykovsi <45871243+rykovsi@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:00:06 +0300 Subject: [PATCH] KAFKA-15500: Fix condition in SslPrincipalMapper.java (#14441) Reviewers: Mickael Maison , Divij Vaidya --- .../apache/kafka/common/security/ssl/SslPrincipalMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/src/main/java/org/apache/kafka/common/security/ssl/SslPrincipalMapper.java b/clients/src/main/java/org/apache/kafka/common/security/ssl/SslPrincipalMapper.java index 33da9642d97b2..0fb83281bf864 100644 --- a/clients/src/main/java/org/apache/kafka/common/security/ssl/SslPrincipalMapper.java +++ b/clients/src/main/java/org/apache/kafka/common/security/ssl/SslPrincipalMapper.java @@ -140,7 +140,7 @@ String apply(String distinguishedName) { if (toLowerCase && result != null) { result = result.toLowerCase(Locale.ENGLISH); - } else if (toUpperCase & result != null) { + } else if (toUpperCase && result != null) { result = result.toUpperCase(Locale.ENGLISH); }