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
Refactor setting of problem detail type #4099
Refactor setting of problem detail type #4099
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4099 +/- ##
============================================
+ Coverage 60.23% 60.44% +0.21%
- Complexity 2385 2389 +4
============================================
Files 357 357
Lines 12397 12388 -9
Branches 892 892
============================================
+ Hits 7467 7488 +21
+ Misses 4493 4461 -32
- Partials 437 439 +2
|
测试了一下 main 分支也是这样,说明是 #4062 的问题。 |
Hi @ruibaby ,确实存在这个问题,稍后我将提交新的 PR 修复这个问题。 |
createErrorResponse 方法是否需要放到 Exceptions 中,我看 #4084 中有重复逻辑 |
…ted (#4101) #### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: This is a bug introduced from #4062. I have overridden onAuthenticationSuccess to create rate limiter in advance instead of invoking `securityContextRepository#save` before. See #4099 (comment) for more. #### Special notes for your reviewer: 1. Try to log in with incorrect password three times 2. Log in with correct password and check if the response headers contain `Set-Cookie` #### Does this PR introduce a user-facing change? ```release-note None ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
@JohnNiang 有冲突需要合并 |
Thanks for reminding me! Resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guqing, ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind improvement
/area core
What this PR does / why we need it:
Define a global map to mapping exception to problem detail type.
Does this PR introduce a user-facing change?