binlog同步到别的mysql数据库时,当table内容为[ "*"]时,会报database.*没权限

Open Beginner friendly
#1,016 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
java, mysql
Domain
databases

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

bug

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DTStack/chunjun

All issues in DTStack/chunjun

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.