ivankelly commented on a change in pull request #3677: PIP-30: interface and 
mutual change authentication
URL: https://github.com/apache/pulsar/pull/3677#discussion_r262895892
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java
 ##########
 @@ -526,7 +526,7 @@ protected void handleConnect(CommandConnect connect) {
             // Not find provider named authMethod. Most used for tests.
             // In AuthenticationDisabled, it will set authMethod "none".
             if (authenticationProvider == null) {
-                authRole = 
getBrokerService().getAuthenticationService().getAnonymousUserRole();
+                authRole = 
getBrokerService().getAuthenticationService().getAnonymousUserRole().get();
 
 Review comment:
   getOrElseThrow(() -> AuthenticationException("No anonymous role, and no 
authentication provider configured"))

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to