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

Replace comma in username to avoid casbin issue #19505

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

stonezdj
Copy link
Contributor

@stonezdj stonezdj commented Oct 31, 2023

Check username when creating user by API
Replace comma with underscore in username for OnboardUser
Fixes #19356

Signed-off-by: stonezdj daojunz@vmware.com

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Issue being fixed

Fixes #(issue)

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@stonezdj stonezdj requested a review from a team as a code owner October 31, 2023 00:36
@stonezdj stonezdj assigned zyyw and unassigned MinerYang and Vad1mo Oct 31, 2023
@stonezdj stonezdj added the release-note/update Update or Fix label Oct 31, 2023
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #19505 (88ed1b3) into main (f75a2f9) will decrease coverage by 22.61%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main   #19505       +/-   ##
===========================================
- Coverage   67.45%   44.84%   -22.61%     
===========================================
  Files         989      244      -745     
  Lines      108836    13417    -95419     
  Branches     2752     2752               
===========================================
- Hits        73413     6017    -67396     
+ Misses      31462     7094    -24368     
+ Partials     3961      306     -3655     
Flag Coverage Δ
unittests 44.84% <ø> (-22.61%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 747 files with indirect coverage changes

src/pkg/member/manager.go Outdated Show resolved Hide resolved
Copy link
Contributor

@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

@stonezdj stonezdj enabled auto-merge (squash) November 2, 2023 02:56
   Check username when creating user by API
   Replace comma with underscore in username for OnboardUser
   Fixes goharbor#19356

Signed-off-by: stonezdj <daojunz@vmware.com>
@stonezdj stonezdj merged commit b337f51 into goharbor:main Nov 2, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/update Update or Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure OIDC is broken since Harbor 2.7 if your username has special characters
5 participants