You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/01/24 19:22:56 UTC
[pulsar] branch branch-2.7 updated: [Authorization] Return if namespace policies are read only (#12514)
This is an automated email from the ASF dual-hosted git repository.
mmarshall pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new e7a1a4f [Authorization] Return if namespace policies are read only (#12514)
e7a1a4f is described below
commit e7a1a4f80cddbca3ceb1b14829cfba9e25b59bff
Author: Michael Marshall <mm...@apache.org>
AuthorDate: Fri Jan 21 17:08:23 2022 -0600
[Authorization] Return if namespace policies are read only (#12514)
* [Authorization Provider] Return early when namespace policies are read only
* Remove typo fix to simplify cherry-picking
(cherry picked from commit f1e72d6154332ca69e278005243ae6bde4e8c554)
---
.../apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java
index 12c289f..26a4f6c 100644
--- a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java
+++ b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java
@@ -290,6 +290,7 @@ public class PulsarAuthorizationProvider implements AuthorizationProvider {
validatePoliciesReadOnlyAccess();
} catch (Exception e) {
result.completeExceptionally(e);
+ return result;
}
ZooKeeper globalZk = configCache.getZooKeeper();