This is an automated email from the ASF dual-hosted git repository.
jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new dbc633d92b Check the input yaml and the path in ACL (#7475)
dbc633d92b is described below
commit dbc633d92b6c8c35922234611d698d3cb0a1a234
Author: Ji Juntao <[email protected]>
AuthorDate: Thu Oct 19 14:12:33 2023 +0800
Check the input yaml and the path in ACL (#7475)
* check the input yaml and the path.
* only modify the path, no yaml.
* remove useless import
---
.../main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
b/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
index f6699fa13b..345aed06c5 100644
---
a/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
+++
b/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
@@ -484,7 +484,7 @@ public class PlainPermissionManager {
return false;
}
- if (!fileName.startsWith(fileHome)) {
+ if (!file.getAbsolutePath().startsWith(fileHome)) {
log.error("Parameter value " + fileName + " is not in the
directory rocketmq.home.dir " + fileHome);
return false;
}