You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Oliverwqcwrw (via GitHub)" <gi...@apache.org> on 2023/02/28 02:12:27 UTC

[GitHub] [rocketmq] Oliverwqcwrw commented on a diff in pull request #6202: [ISSUE #6201] Fix After the acl permission is configured with ANY, messages cannot be sent

Oliverwqcwrw commented on code in PR #6202:
URL: https://github.com/apache/rocketmq/pull/6202#discussion_r1119504437


##########
acl/src/main/java/org/apache/rocketmq/acl/common/Permission.java:
##########
@@ -26,7 +26,7 @@
 public class Permission {
 
     public static final byte DENY = 1;
-    public static final byte ANY = 1 << 1;
+    public static final byte ANY = 0b00001110;

Review Comment:
   Keep the original value and the judgment will fail
   <img width="555" alt="image" src="https://user-images.githubusercontent.com/31796988/221735061-2a68edfd-c390-4b31-987d-06ec905b04d9.png">
   



-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org