binlog同步到别的mysql数据库时,当table内容为[ "*"]时,会报database.*没权限
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 62/100
Research direction
Find BinlogUtil#checkTablesPrivilege and inspect how a tables value of [""] is handled during MySQL binlog synchronization. Verify the permission check for this wildcard case, then reproduce or run the relevant existing checks to confirm synchronization no longer reports that database. lacks permission.
Written by the indexing model from the issue text.
Description
binlog同步到别的mysql数据库时,当table内容为[ "*"]时,会报database.*没权限
解决办法:修改 BinlogUtil#checkTablesPrivilege 方法
if (CollectionUtils.isNotEmpty(tables))
改为
if (CollectionUtils.isNotEmpty(tables) && !"*".equals(tables.get(0)))
- Dominant language
- Java
- Stars
- 4.1k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DTStack/chunjun
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 50/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
feature-request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
feature-request
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100