nodece commented on code in PR #17393:
URL: https://github.com/apache/pulsar/pull/17393#discussion_r961294204
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java:
##########
@@ -354,8 +354,12 @@ private CompletableFuture<Void>
revokePermissionsAsync(String topicUri, String r
||
!policies.auth_policies.getTopicAuthentication().get(topicUri).containsKey(role))
{
log.warn("[{}] Failed to revoke permission from role
{} on topic: Not set at topic level {}",
clientAppId(), role, topicUri);
- return FutureUtil.failedFuture(new
RestException(Status.PRECONDITION_FAILED,
- "Permissions are not set at the topic level"));
+ if (force) {
Review Comment:
Hi @michaeljmarshall and @TakaHiR07, I don't suggest throwing an exception
when the policy doesn't exist.
What do you think of this?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]