Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #7710] Handle blank string for UtilAll#split to fix the bugs of ACL #7712

Merged

Conversation

Qinglong-Lee
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #7710

Brief Description

The PR is for a bug the ACL, which caused the problem of deleting the last item of the topic/group perms or the global white list.
The bug is due to the flaw of UtilAll#split func which didn't handle the blank string case properly.
So I've fixed it.

How Did You Test This Change?

This change have been tested by unit test and the bug have been tested on local.
I've also searched the usages of the changed method globally.
I'm sure the bug has been fixed and has no influence on any other functions of the project.

图片
图片

@Qinglong-Lee
Copy link
Contributor Author

@RongtongJin @fuyou001

@RongtongJin RongtongJin changed the title Handle blank string for UtilAll#split to fix the bugs of ACL [ISSUE #7710] Handle blank string for UtilAll#split to fix the bugs of ACL Jan 2, 2024
@Qinglong-Lee Qinglong-Lee force-pushed the bugfix-ACL_ISSUE_by_UtilAll#split branch from 40f7838 to 5a82142 Compare January 2, 2024 07:24
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9e4fd0e) 43.18% compared to head (5a82142) 43.16%.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #7712      +/-   ##
=============================================
- Coverage      43.18%   43.16%   -0.02%     
+ Complexity      9821     9809      -12     
=============================================
  Files           1165     1165              
  Lines          84546    84548       +2     
  Branches       10979    10980       +1     
=============================================
- Hits           36510    36496      -14     
- Misses         43503    43509       +6     
- Partials        4533     4543      +10     

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

@RongtongJin RongtongJin merged commit 806454b into apache:develop Jan 2, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants