Skip to content

[ISSUE #9539] Fix compare policy entry logic in ACL 2.0#9540

Merged
lizhimins merged 1 commit intoapache:developfrom
1782935682:bugfix/fix_acl_compare_policy
Jul 14, 2025
Merged

[ISSUE #9539] Fix compare policy entry logic in ACL 2.0#9540
lizhimins merged 1 commit intoapache:developfrom
1782935682:bugfix/fix_acl_compare_policy

Conversation

@1782935682
Copy link
Copy Markdown
Contributor

@1782935682 1782935682 commented Jul 11, 2025

Which Issue(s) This PR Fixes

Fixes #9539

Brief Description

How Did You Test This Change?

@lizhimins
Copy link
Copy Markdown
Member

@dingshuangxi888

Copy link
Copy Markdown
Contributor

@dingshuangxi888 dingshuangxi888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

.filter(entry -> entry.isMatchAction(context.getActions()))
.filter(entry -> entry.isMatchEnvironment(Environment.of(context.getSourceIp())))
.collect(Collectors.toList());
.filter(entry -> entry.isMatchResource(context.getResource()))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import checkstyle from project

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@1782935682 1782935682 force-pushed the bugfix/fix_acl_compare_policy branch from cdd61e5 to 347d25c Compare July 11, 2025 03:38
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 14, 2025

Codecov Report

❌ Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.95%. Comparing base (2accb97) to head (347d25c).
⚠️ Report is 11 commits behind head on develop.

Files with missing lines Patch % Lines
...h/authorization/chain/AclAuthorizationHandler.java 20.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9540      +/-   ##
=============================================
- Coverage      48.01%   47.95%   -0.06%     
+ Complexity     12035    12022      -13     
=============================================
  Files           1312     1312              
  Lines          92694    92694              
  Branches       11855    11855              
=============================================
- Hits           44504    44455      -49     
- Misses         42675    42726      +51     
+ Partials        5515     5513       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lizhimins lizhimins changed the title Fix error in compare policyEntry [ISSUE #9539] Fix compare policy entry logic in ACL 2.0 Jul 14, 2025
@lizhimins lizhimins merged commit e4b731c into apache:develop Jul 14, 2025
10 of 12 checks passed
hechen0 pushed a commit to hechen0/rocketmq that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] ACL2.0 配置多个ACL策略,优先级比较异常

4 participants