From 0e7d38aaa65b1ab991d8622cb763eb7608916ebf Mon Sep 17 00:00:00 2001 From: bilahepan Date: Sat, 29 Feb 2020 08:59:08 +0800 Subject: [PATCH] fix the bug of authenticationData is't initialized. (#6440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Motivation fix the bug of authenticationData is't initialized. the method org.apache.pulsar.proxy.server.ProxyConnection#handleConnect can't init the value of authenticationData. cause of the bug that you will get the null value form the method org.apache.pulsar.broker.authorization.AuthorizationProvider#canConsumeAsync when implements org.apache.pulsar.broker.authorization.AuthorizationProvider interface. Modifications init the value of authenticationData from the method org.apache.pulsar.proxy.server.ProxyConnection#handleConnect. Verifying this change implements org.apache.pulsar.broker.authorization.AuthorizationProvider interface, and get the value of authenticationData. (cherry picked from commit b8f0ca092b6c6cbd04525fb81ea55ba516a06cf7) --- .../java/org/apache/pulsar/proxy/server/ProxyConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java index d9960c5a1ec..9b8b7fb0aed 100644 --- a/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java +++ b/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java @@ -327,6 +327,7 @@ public class ProxyConnection extends PulsarHandler implements FutureListener