From 5dae822053ef813b1406274843522b2f126af184 Mon Sep 17 00:00:00 2001 From: zzl <87265072+zhiliatom@users.noreply.github.com> Date: Wed, 8 May 2024 14:05:33 +0800 Subject: [PATCH] [ISSUE #8108] Fix check MetadataProvider when enable acl2.0 (#8109) --- .../manager/AuthenticationMetadataManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/src/main/java/org/apache/rocketmq/auth/authentication/manager/AuthenticationMetadataManagerImpl.java b/auth/src/main/java/org/apache/rocketmq/auth/authentication/manager/AuthenticationMetadataManagerImpl.java index 6eabe69f456..39620ca8d25 100644 --- a/auth/src/main/java/org/apache/rocketmq/auth/authentication/manager/AuthenticationMetadataManagerImpl.java +++ b/auth/src/main/java/org/apache/rocketmq/auth/authentication/manager/AuthenticationMetadataManagerImpl.java @@ -207,14 +207,14 @@ private void handleException(Exception e, CompletableFuture result) { } private AuthenticationMetadataProvider getAuthenticationMetadataProvider() { - if (authorizationMetadataProvider == null) { + if (authenticationMetadataProvider == null) { throw new IllegalStateException("The authenticationMetadataProvider is not configured"); } return authenticationMetadataProvider; } private AuthorizationMetadataProvider getAuthorizationMetadataProvider() { - if (authenticationMetadataProvider == null) { + if (authorizationMetadataProvider == null) { throw new IllegalStateException("The authorizationMetadataProvider is not configured"); } return authorizationMetadataProvider;